如何在VS2010中配置清单文件设置 [英] How to configure Manifest File settings in VS2010

查看:979
本文介绍了如何在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.


这篇关于如何在VS2010中配置清单文件设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆