How to create / edit manifest file?

I have this code from a colleague (maybe he got it from the Internet somewhere), but he went on vacation, and I need to add it 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> 

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

I am using Visual Studio 2010

+76
c # visual-studio-2008 visual-studio-2010 manifest
May 18 '11 at 20:13
source share
4 answers

In Visual Studio 2010, 2012, 2013, 2015 and 2017, you can add a manifest file to your project.

Right-click the project file in Solution Explorer, select " Add , then" New item (or CTRL + SHIFT + A). There you can find Application Manifest File .

The file name is app.manifest .

+95
May 18 '11 at 20:17
source share

As pointed out in ibram, add the manifest via explorer:

enter image description here

This creates a default manifest. Now edit the manifest.

  • Update the name assemblyIdentity as your application.
  • Ask users to trust your application

enter image description here

  • Add Supported OS

enter image description here

+15
Mar 04 '16 at 16:53 on
source share

Go to the obj folder in your application folder, then debug. There, delete the manifest file and recreate it. It worked for me.

0
Aug 20 '17 at 10:39 on
source share

The easiest way to create a manifest:

Project properties-> Security β†’ Click "enable ClickOnce security settings" (it will generate a default manifest in the properties of your project) β†’ then click it again to clear this check box β†’ open your app.maifest and edit it as you wish.

Manifest location preview

0
Apr 01 '19 at 19:19
source share



All Articles