如何在Visual Studio 2010中将清单文件添加到项目中?

编程入门 行业动态 更新时间:2024-10-16 22:16:29
本文介绍了如何在Visual Studio 2010中将清单文件添加到项目中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用Visual Studio 2010将清单文件添加到项目中,以便将该项目设置为与Windows 7兼容并禁用虚拟化.

I am trying to add a manifest file to a project with Visual Studio 2010, so as to set the project to be compatible with Windows 7 and to disable the virtualization.

问题是,在我想添加新项目时,在Visual Studio 2010中没有可供选择的应用程序清单文件"选项.

The problem is that in my Visual Studio 2010 there is no option "Application Manifest File" to choose when I want to add a new item.

构建项目时,我可以生成清单文件,因为我在链接器中设置了属性.但是我可以修改该文件以向其中添加兼容性属性吗?

I can generate a manifest file when building the project, as I set the property in the Linker to do so. But can I modify that file to add the compatibility property to it?

是否有某种方法可以在项目内部创建清单文件,然后进行构建?还是可以从属性"对话框(清单工具)本身设置兼容性属性?

Is there some way to create the manifest file inside the project and then build it? Or can I set the compatibility property from the Properties dialog (manifest tool) itself?

推荐答案

  • 创建所需的清单文件.
  • 将其保存为扩展名为.manifest的计算机上的某个位置.
  • 在Visual Studio中右键单击您的项目,然后选择Add > Existing Item...
  • 浏览到清单文件并打开它.
  • 构建您的项目.
  • Create the manifest file you want.
  • Save it somewhere on your computer with a .manifest extension.
  • Right-click your project in Visual Studio, and select Add > Existing Item...
  • Browse to the manifest file and open it.
  • Build your project.
  • 更多推荐

    如何在Visual Studio 2010中将清单文件添加到项目中?

    本文发布于:2023-11-11 05:44:26,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1577543.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:中将   清单   文件   项目   如何在

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!