Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
463 views
in Technique[技术] by (71.8m points)

c++ - How to add a manifest file to a project in visual studio 2010?

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.

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  1. Create the manifest file you want.
  2. Save it somewhere on your computer with a .manifest extension.
  3. Right-click your project in Visual Studio, and select Add > Existing Item...
  4. Browse to the manifest file and open it.
  5. Build your project.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...