Creating a Manifest File for Application Deployment
Developing applications often requires deploying them with specific permissions and configurations. A manifest file defines how an assembly interacts with the operating system and can be used to elevate privileges, enable side-by-side assemblies, and specify runtime dependencies.
Creating a Manifest File in Visual Studio 2010
To create a manifest file in Visual Studio 2010, follow these steps:
Editing the Manifest File
Once the manifest file has been created, you can edit it to include the desired configurations. In your case, you have code from a coworker that you need to add.
<?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>
This code will add the necessary permissions to the manifest file to elevate the application to require administrator privileges.
The above is the detailed content of How Do I Create and Edit an Application Manifest File in Visual Studio 2010 to Specify Application Permissions?. For more information, please follow other related articles on the PHP Chinese website!