Skip to content

Commit

Permalink
Add workaround for AppWindow bug
Browse files Browse the repository at this point in the history
AppWindow doesn't work on unpackaged apps without workaround: microsoft/WindowsAppSDK#1815
  • Loading branch information
andrewleader committed Dec 3, 2021
1 parent 8c6c572 commit 105e12e
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions WindowsAppSDKGallery/app.manifest
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="WindowsAppSDKGallery.app"/>
<assemblyIdentity version="1.0.0.0" name="WindowsAppSDKGallery.app"/>

<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<!-- The combination of below two tags have the following effect:
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<!-- The combination of below two tags have the following effect:
1) Per-Monitor for >= Windows 10 Anniversary Update
2) System < Windows 10 Anniversary Update
-->
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
</windowsSettings>
</application>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
</windowsSettings>
</application>

<!--Workaround for AppWindow bug https://github.com/microsoft/WindowsAppSDK/issues/1815-->
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10 and Windows 11 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
</application>
</compatibility>
</assembly>

0 comments on commit 105e12e

Please sign in to comment.