You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While attempting to build an unpackaged app that also runs as administrator, the compiler gives the error Values of attribute "level" not equal in different manifest snippets. as well as another error regarding the Windows SDK build tools exiting.
Steps to Reproduce
Add <WindowsPackageType>None</WindowsPackageType> to a PropertyGroup in your .csproj file
Change MsixPackage to Project in launchSettings.json.
Add: <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> to app.manifest in Platforms/Windows
and also add <rescap:Capability Name="allowElevation" /> under the Capabilities section in the Package.appxmanifest
Currently, I have not. The only workaround I have been able to do is to either have it run unpackaged and as a regular user or have it MSIX packaged & as an admin.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
Description
While attempting to build an unpackaged app that also runs as administrator, the compiler gives the error
Values of attribute "level" not equal in different manifest snippets.
as well as another error regarding the Windows SDK build tools exiting.Steps to Reproduce
Add
<WindowsPackageType>None</WindowsPackageType>
to a PropertyGroup in your .csproj fileChange
MsixPackage
toProject
in launchSettings.json.Add:
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo>
to app.manifest inPlatforms/Windows
and also add
<rescap:Capability Name="allowElevation" />
under the Capabilities section in the Package.appxmanifestLink to public reproduction project repository
https://github.com/glebinski/MauiBug
Version with bug
6.0.312
Last version that worked well
6.0.312
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.17763.0
Did you find any workaround?
Currently, I have not. The only workaround I have been able to do is to either have it run unpackaged and as a regular user or have it MSIX packaged & as an admin.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: