I have a WinForm application and I am migrating it from .net-framework to .net-core. In .Net Frameworks, I use the app.config file to enable DpiAwareness. At the same time I set EnableWindowsFormsHighDpiAutoResizing to false so I can handle the resizing myself.
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2" />
<add key="EnableWindowsFormsHighDpiAutoResizing" value="false" />
</System.Windows.Forms.ApplicationConfigurationSection>
In .Net Core, the app.config doesn't seems make any difference anymore. I can use Application.SetHighDpiMode to enable Dpi mode, but I cannot find a way to update EnableWindowsFormsHighDpiAutoResizing.
I have tried manually make a myapp.exe.config file and using runtime.config.json, no luck. How to update EnableWindowsFormsHighDpiAutoResizing in .Net Core?