如何创建/编辑清单文件?清单、编辑、文件

2023-09-02 11:58:05 作者:离群的狼

我有一个同事(可能是从网络上的某个地方得到了它)这code,但他外出度假,我需要把它添加到清单文件

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

<?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>  

我是比较新的这个所以任何帮助将是AP preciated。 谢谢

I am relatively new to this so any help would be appreciated. Thanks

我在使用Visual Studio 2010

I'm using Visual Studio 2010

推荐答案

在VS2010可以在清单文件添加到项目中。用鼠标右键单击您的项目文件的上的解决方案资源管理器的,选择添加,然后新建项目。在那里,你可以找到应用程序清单文件

In VS2010 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.

该文件的名称是 app.manifest