How do I create/edit a Manifest file?

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" 
    <assemblyIdentity version="" name="MyApplication" />
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
            <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
                <requestedExecutionLevel level="requireAdministrator" 
        uiAccess="false" />

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

I'm using Visual Studio 2010


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

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

The file name is app.manifest.

As ibram stated, add the manifest thru solution explorer:

This creates a default manifest. Now, edit the manifest.

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

  • Add supported OS

The simplest way to create a manifest is:

Project Properties -> Security -> Click "enable ClickOnce security settings" 
(it will generate default manifest in your project Properties) -> then Click 
it again in order to uncheck that Checkbox -> open your app.maifest and edit 
it as you wish.

Go to obj folder in you app folder, then Debug. In there delete the manifest file and build again. It worked for me.

Need Your Help

Character gets stranded with polygon collider in sloped platform

c# unity3d

I have used polygon collider for the hills and terrain like sprite in my 2d game.

Access database by many users simultaneously

mysql sql database

If a database is access by many users then it is necessary to take lock on database? If YES then how to take lock on table or database? What is problem if not taking a lock?