记一笔manifest与dpiAware
<application xmlns="urn:schemas-microsoft-com:asm.v3"> <windowsSettings> <!-- Per Monitor V1 [OS >= Windows 8.1] Values: False, True, Per-monitor, True/PM --> <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"> true/PM</dpiAware> <!-- Per Monitor V1 [OS >= Windows 10 Anniversary Update (1607, 10.0.14393, Redstone 1)] Values: Unaware, System, PerMonitor --> <!-- Per Monitor V2 [OS >= Windows 10 Creators Update (1703, 10.0.15063, Redstone 2)] Value: PerMonitorV2 --> <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings"> PerMonitorV2, PerMonitor</dpiAwareness> </windowsSettings> </application>
或者直接禁用掉
<asmv3:application> <asmv3:windowsSettings> <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</dpiAware> <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">unaware</dpiAwareness> </asmv3:windowsSettings> </asmv3:application>