I have this code from a coworker (probably got it from the web somewhere) but he's out on vacation and I need to add this to the manifest file
我有一个同事的这段代码(可能是从网络上得到的),但是他出去度假了,我需要把它添加到manifest文件中
<?xml version="1.0" encoding="utf-8" ?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyIdentity version="1.0.0.0" name="MyApplication" />
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="requireAdministrator"
uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
</asmv1:assembly>
I am relatively new to this so any help would be appreciated. Thanks
我对此比较陌生,所以任何帮助都是值得感激的。谢谢
I'm using Visual Studio 2010
我用的是Visual Studio 2010
3 个解决方案
#1
73
In VS2010, 2012, 2013 and 2015 you can add the manifest file to your project. Right click your project file on the Solution Explorer, select Add
, then New item
. There you can find Application Manifest File
.
在2010、2012、2013和2015年的VS2010中,您可以将manifest文件添加到您的项目中。右键单击解决方案资源管理器上的项目文件,选择Add,然后是New item。在那里您可以找到应用程序清单文件。
The file name is app.manifest.
文件名是app.manifest。
#2
9
As ibram stated, add the manifest thru solution explorer:
如ibram所述,添加清单通过解决方案资源管理器:
This creates a default manifest. Now, edit the manifest.
这将创建一个默认清单。现在,编辑manifest。
- Update the assemblyIdentity name as your application.
- 将程序集标识名更新为应用程序。
- Ask users to trust your application
- 请用户信任您的应用程序
- Add supported OS
- 添加支持的操作系统
#3
0
Go to obj folder in you app folder, then Debug. In there delete the manifest file and build again. It worked for me.
转到app文件夹中的obj文件夹,然后调试。在那里,删除清单文件并再次构建。它为我工作。
#1
73
In VS2010, 2012, 2013 and 2015 you can add the manifest file to your project. Right click your project file on the Solution Explorer, select Add
, then New item
. There you can find Application Manifest File
.
在2010、2012、2013和2015年的VS2010中,您可以将manifest文件添加到您的项目中。右键单击解决方案资源管理器上的项目文件,选择Add,然后是New item。在那里您可以找到应用程序清单文件。
The file name is app.manifest.
文件名是app.manifest。
#2
9
As ibram stated, add the manifest thru solution explorer:
如ibram所述,添加清单通过解决方案资源管理器:
This creates a default manifest. Now, edit the manifest.
这将创建一个默认清单。现在,编辑manifest。
- Update the assemblyIdentity name as your application.
- 将程序集标识名更新为应用程序。
- Ask users to trust your application
- 请用户信任您的应用程序
- Add supported OS
- 添加支持的操作系统
#3
0
Go to obj folder in you app folder, then Debug. In there delete the manifest file and build again. It worked for me.
转到app文件夹中的obj文件夹,然后调试。在那里,删除清单文件并再次构建。它为我工作。