I can't make any Microsoft Windows Forms in Visual Studio 2019 C#

696 views Asked by At

I'm using Visual Studio Community 2019 and coding in C#. If I create a Windows Forms App either on an existing solution or in a new one, it opens IntelliSense, loads the file and then this error message appears:

  *"IntelliSense finished initializing, but an error ocurred when attempting to load the document"*  

  *"Error code: 0x80131500"*

Most of the tutorials I've found point to solutions with Unity, but I'm not working with it. I've tried restarting the export and import settings, running as administrator, starting the Windows Forms app in a separated solution, on a new one, using NET 5.0 and with NET 3.1, unchecking then rechecking the "Auto list members" and "Parameter information" boxes on Tools > Configuration > Text Editor > All Languages > General menu, then rebooting. But nothing has worked. I've read that the .csproj file could be corrupted, but I don't know how to check or repair that.

2

There are 2 answers

0
Tomás Montaña On BEST ANSWER

Tools -> Import and Export settings -> Reset all settings -> General. Reset Visual Studio and try again. - Answered by Jonathan Monestel

0
Danial Sa'adati On

Referring to \[Microsoft Community\]\[1\] and my own experience, this solution works perfectly:

Uncheck this Item from Tools -> Options -> Environment -> Preview Features -> Uncheck "Load projects faster"

enter image description here

That's all!