I want to enable dpi Awareness in our VB.net WinForms Application. So I put the code below into the app.config file. But our project has the checkbox "enable application framework" not checked. Our App starts with a shared sub main and .show(). When the checkbox is not checked I can not enable dpiAwareness! (Since April '19 you can see the dpi mode in the taskmanager) The app.config settings gets ignored?! I dont know.
In Test Projects, there is no problem. There I can check the box and the app.config works or I leave it unchecked and can change the dpi mode at runtime via api call.
</system.diagnostics>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2" />
dpi setting in app.config wont work without "enable application framework" checkbox.