如何使用 VS2008 将应用程序清单嵌入到应用程序中?
I've read here and here for ways to embed my application's manifest files inside the PE but these steps do not seem to work for VC#:VS2008 - VS2008 doesn't even come with mt.exe (as far as i know)
How might I go about doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以按照以下步骤向 C# 应用程序添加清单:
但是,请注意,Visual Studio 默认情况下已向您的项目添加清单,以确保符合 Windows Vista 和 7 中的 UAC。 如果您想指定项目应使用自定义清单文件,请遵循以下附加步骤:
最后,为了完整起见,或者如果上述步骤不适合您,您仍然可以使用
mt.exe
在构建应用程序后将清单文件嵌入到应用程序的 EXE 中。如果您安装的 Visual Studio 中未包含它,则需要下载并安装 Windows SDK。获取 Windows 7 和 .NET Framework 4.0 的最新版本 此处。You can add a manifest to your C# application by following these steps:
However, note that Visual Studio already adds a manifest to your project by default in order to ensure compliance with UAC found in Windows Vista and 7. If you want to specify that a custom manifest file should be used by your project instead, follow these additional steps:
Finally, for the sake of completeness or if the above steps don't work for you, you can still use
mt.exe
to embed your manifest file into your application's EXE after you've built it. If it wasn't included with your installation of Visual Studio, you'll need to download and install the Windows SDK. Get the latest version for Windows 7 and the .NET Framework 4.0 here.