VS2012: manifest authoring error c1010005: The root element name should be <assembly/>

StackOverflow https://stackoverflow.com/questions/19392574

  •  30-06-2022
  •  | 
  •  

سؤال

I took the manifest file from the Microsoft documentation: http://msdn.microsoft.com/en-us/library/ms742884.aspx It does not work!

<trustInfo xmlns="urn:0073chemas-microsoft-com:asm.v3">
    <security>
        <requestedPrivileges>
        <requestedExecutionLevel
            level="highestAvailable"
            UIAccess="true" />
        </requestedPrivileges>
    </security>
</trustInfo>

Manifest authoring error c1010005: The root element name should be <assembly/>

هل كانت مفيدة؟

المحلول

It is not a complete manifest, just a snippet. You can find one here.

Btw, there's no need to do this by hand at all in VS2012. It already supports auto-generating the manifest. Right-click your project, Properties, Linker, Manifest File. Change the UAC Execution Level setting to "highestAvailable".

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top