0

When I create a Windows Forms project (running on the .NET Framework), it works without problems.

But Windows Forms app doesn't work neither in .NET 6.0 nor in .NET 7.0.

In the end, there is always a solution with 0 project and it is not possible to add the project that you create there in the folders.

I am using VS 17.7.1

See this screenshot:

https://pasteboard.co/gSCqZeyFtwCY.gif

.NET SDK 6 and 7 installed Installed

Working enter image description here

Ewerton Dutra
  • 17
  • 1
  • 7

1 Answers1

1

Try adding C:\Program Files\dotnet\ in System Environment Path.

I am able to reproduce your problem by removing the variable.

Minxin Yu - MSFT
  • 2,234
  • 1
  • 3
  • 14
  • Very good This link also helped https://stackoverflow.com/questions/67049414/windows-or-visual-studio-2022-cant-find-the-latest-installed-net-sdk-due-to-bi/67049415#67049415 There were 2 environment variables there in the path I updated with print working – Ewerton Dutra Aug 24 '23 at 15:33