我正在尝试使WebView控件正确显示在高DPI显示屏上。按照此处的指示进行操作:
https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/wpf-winforms/webview#high-dpi
虽然我找不到添加以下代码的正确应用程序配置文件在哪里:
<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 -->
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
</windowsSettings>
</application>
现在我有一个名为App.config
的文件,但无法成功将上述代码添加到其中。那文件在哪里?