【发布时间】:2017-07-10 06:01:52
【问题描述】:
使用 .dll 作为参考的应用程序。最初,DLL 版本是 1.2.x.x 版本,并且可以完美运行。当我使用 dll (1.3.x.x) 的更新版本时,它无法正常工作。
Hack:我以 run as administrator 身份打开我的 Visual Studio,然后当前版本的 dll(1.3.x.x) 正在运行。
应用程序 .net 框架:4.5 视觉工作室:2012
应用程序通过mage.exe 创建manifest(application.exe.manifest)。
问题: 首先,为什么我的应用程序需要新 dll(1.3.x.x) 的“以管理员身份运行”权限。 二、如何解决。
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!--
UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
If you want to utilize File and Registry Virtualization for backward
compatibility th[![enter image description here][1]][1]en delete the requestedExecutionLevel node.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
【问题讨论】:
标签: c# visual-studio manifest mage