Visual Studio 2022 C# project templates does not create a project

Jeff Dworkin 0 Reputation points

After installing Visual Studio 2022, I attempted to create a new project using the C#/.NET/MVC standard template. When the project is created, it is empty, there are no files created and no project within the new solution.

A set of technologies in the .NET Framework for building web applications and XML web services.
3,414 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,880 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor

    Hi @Jeff Dworkin,

    I understand your problem through your screenshot.

    Please check your System environment variables if there are two paths to dotnet.
    C:\Program Files\dotnet
    C:\Porgram Files (x86)\dotnet

    If so, please delete this one: C:\Porgram Files (x86)\dotnet.
    Then, restart your computer and check if the project can be created normally.

    Best regards,
    Lan Huang

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. SurferOnWww 2,491 Reputation points

    Then you get a solution with no project within it and no files are generated.

    The issue is probably related to the SDK. If so, the following Microsoft document will help:

    No .NET SDK was found

    There are step-by-step procedures to find the cause, change the order of environment variables and solve the issue.

    You do not have to delete the "C:\Program Files (x86)\dotnet" in the environment variables.

    0 comments No comments