如何在VS2010中配置清单文件设置
我有一个使用第三方库(.Lib,.h)的应用程序。这些库在VS2005上编译。我们的环境使用VS2010,在项目设置中,我们选择Generate Manifest为Yes(配置属性 - > Linker - > Manifest File - > Generate MAnifest)。一旦我们更改此设置,我们的应用程序将搜索VS2005的程序集,这就是我们将值设置为(Generate Manifest为NO)的原因。现在应用程序不会抱怨并且运行顺利。
但是现在对于某些功能我想要将此设置设置为是,如果我们使用它,我们的应用程序将不会运行并给出以下错误。
---------------------------
Microsoft Visual工作室
---------------------------
无法启动程序'D :\Code \Debug \ Myapp.exe'。
此应用程序失败启动,因为应用程序配置不正确。查看清单文件以查找可能的错误。重新安装应用程序可能会解决此问题。有关详细信息,请参阅应用程序事件日志。
请建议我一些替代方案,以便我能够使用相同的库文件与
Generate Manifest改为Yes。
I have an application which uses third party libraries (.Lib,.h). These libraries are compiled on VS2005. Our environment uses VS2010 and in project setting we have selected "Generate Manifest" to "Yes" (Configuration Properties-->Linker-->Manifest File-->Generate MAnifest). Once we change this setting our application searches for assemblies of VS2005 and that is the reason we have set the value of to ("Generate Manifest" to "NO" ). Now the application wont complain and run smoothly.
But now for some functionalities I want need to make this setting to "Yes" and if we make it our application wont run and gives following error.
---------------------------
Microsoft Visual Studio
---------------------------
Unable to start program 'D:\Code\Debug\Myapp.exe'.
This application has failed to start because the application configuration is incorrect. Review the manifest file for possible errors. Reinstalling the application may fix this problem. For more details, please see the application event log.
Please suggest me some alternative so that I shd be able to use the same library files with
"Generate Manifest" to "Yes".
删除文件夹my project中的app.manifest并启动Debug。
Delete app.manifest in folder "my project" and Start Debug.