在csharp应用程序中嵌入清单文件 [英] Embedding manifest file in csharp application
问题描述
在我的c尖锐应用程序(使用Visual Studio 2005)中,我尝试在Vista中运行时遇到问题,在Vista中,我应始终使用以管理员身份运行"菜单调用该应用程序以实现全部功能(创建,删除和覆盖文件) .谷歌搜索后,我发现在应用程序中嵌入清单文件可以解决问题
http://msdn.microsoft.com/en-us/library/bb756929.aspx [ ^ ]
但是我无法理解他们的解释.我无法像他们解释的那样在项目属性下找到清单工具,它还有其他解决方案吗?请帮助
谢谢
In my c sharp application (using Visual studio 2005) I have a problem while I try to run in vista, In vista I should always invoke the application using Run as administrator menu for full functionality (creating,deleting and overwriting files). After google search I found embedding a manifest file in the application can solve the problem
http://msdn.microsoft.com/en-us/library/bb756929.aspx[^]
but I can''t undesrstand what they explain in that.I can''t find the manifest tool under the project properties as they explained, Is it have any other solution? Plz help
Thanks
推荐答案
不幸的是,VS2005不通过IDE支持此选项(VS2010具有此选项.)
但是,如果您使用的是VS2005,则可以使用清单工具mt.exe通过命令行嵌入清单.该命令相对简单.
Unfortunately VS2005 does not support this option through the IDE (VS2010 has this option.)
But you can use the manifest tool mt.exe to embed the manifest through the command line if you have VS2005. The command is relatively straight forward.
这篇关于在csharp应用程序中嵌入清单文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!