Blurry Visual Studio Interface

I’ve just installed Visual Studio Community 2017 in a Windows 10 environment. When I tried to build the solution, the interface becomes blurry, unlike the sharp interface during design view. To make it sharp, follow the following steps:

1. Install .NET Framework 4.7 or later versions.
2. Change the Target Framework of the solution to .NET Framework 4.7.
3. Open the app.manifest file of the solution. (Project menu > [Solution name] Properties… > Application tab > click View Windows Settings)
4. Find

<!-- Windows 10 compatibility -->

under the compatibility tag.
5. Uncomment:

supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"

6. Open the app.config file of the solution. This is located immediately inside the solution folder.
7. Add the following XML code (NOT inside the startup tag, but on the same level):

 <add key="DpiAwareness" value="PerMonitorV2" />

8. Open your solution.
9. In Project menu > [Solution name] Properties… > Application tab > click View Windows Settings, un-check Enable Application Framework.
10. Change the startup form to Sub Main.
11. Add a new module to the project and add the following code:

Module Module1
 Sub Main()
 Application.Run(New Form)
 End Sub
End Module

12. Re-check again the Enable Application Framework and change the startup form to your form. Run the project and the display should now be crisp.

You really need .NET Framework 4.7 (or later) to accomplish above steps, or else it will not work.

These sites help me:


The primary reference “MySql.Data” could not be resolved because it was built against the “.NETFramework,Version=v4.5” framework. This is a higher version than the currently targeted framework “.NETFramework,Version=v4.0”.

We have a VB.NET application which was originally developed with the target framework as .NET Framework 4.5. However, because the client wants it to also run on Windows XP, we were forced it to change to .NET Framework 4. The solution is in this link. Just follow the steps on the Workaround section. I also copied the steps below to save you time from opening another page.

However, of course, if the current program requires the features that .NET Framework 4.5 offers, then you have no other choice but to re-program to support Windows XP (if the client doesn’t want to upgrade their computers and is willing to pay again to support Windows XP).


The simplest workaround is to edit the modeling project file to ignore target framework version mismatches as follows:

1. Unload the modeling project by right clicking on it in Solution Explorer window and choosing Unload Project.


2. Open the project file into the editor by right clicking on it in Solution Explorer window and choosing Edit projectname.modelproj.



3. Add the following element inside the <Project> element:




4. Save the project file.

5. Right click on the modeling project in Solution Explorer and choose Reload Project.


6. Validate your architecture in the usual way.