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