VS, if I’m not mistaken, always provides assemblies with a manifest where metadata is described.

But you can also add your own assembly manifest to the project.

Why this may be required and what is the profit in this? Is it filled with XML handles or some utility?

    1 answer 1

    From what I used, you can request that your application always run with administrator rights :

    <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> 

    If you add a manifest, it replaces the default manifest. Its easiest to edit by hand. In the manifesto that I put in Visual Studio 2015, all the necessary sections are present in the commented form. For example:

      <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> <application> <!-- A list of the Windows versions that this application has been tested on and is is designed to work with. Uncomment the appropriate elements and Windows will automatically selected the most compatible environment. --> <!-- Windows Vista --> <!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />--> <!-- Windows 7 --> <!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />--> <!-- Windows 8 --> <!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />--> <!-- Windows 8.1 --> <!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />--> <!-- Windows 10 --> <!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />--> </application> </compatibility> 

    So manual editing is not a problem.

    • It serves as an addition to the generated manifest or completely replaces it => with handles to prescribe all dependencies? Are his handles ruled or are there utilities? - iluxa1810
    • @ iluxa1810: What are the dependencies? - VladD
    • , msdn.microsoft.com/ru-ru/library/1w45z383(v=vs.110).aspx say that the necessary assemblies should be listed. - iluxa1810
    • @ iluxa1810: It seems that this is just additional information. I created an application with a manifest without dependencies, and it seemed to run without problems. - VladD