如何在我的VB.NET应用程序中添加清单(用于UAC支持)?

2 vb.net windows uac manifest

如何在VB.NET中添加和嵌入清单文件,以便为我的应用程序添加UAC支持?

小智 6

在VB.NET 2010中,转到项目→我的项目→应用程序→查看Windows设置.

您将看到默认清单.从这里,您可以根据需要进行更改.

例如,在这种情况下,要在应用程序启动时要求UAC提升,请更改:

requestedExecutionLevel level="asInvoker" uiAccess="false"  
Run Code Online (Sandbox Code Playgroud)

requestedExecutionLevel level="requireAdministrator" uiAccess="false"   
Run Code Online (Sandbox Code Playgroud)