I am doing some mage.exe manifest generation on a build box. This is what the command looks like...
mage -New Application -TrustLevel FullTrust -ToFile bob.exe.manifest -Name Bob -Version 3.00.26.578 -FromDirectory c:\deploy\3.00.26.578 -p x86
As you can see, I am asking for FullTrust. The manifest is generated and the trustInfo section looks like this...
<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet Unrestricted="true" ID="Custom" SameSite="site" />
<defaultAssemblyRequest permissionSetReference="Custom" />
</applicationRequestMinimum>
<requestedPrivileges xmlns="urn
chemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
According to the trustInfo reference, it should look like this...
<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet ID="FullTrust" Unrestricted="true" />
<defaultAssemblyRequest permissionSetReference="FullTrust" />
</applicationRequestMinimum>
</security>
</trustInfo>
Am I getting FullTrust from mage with the ID set to Custom?