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

Jeff Dworkin 0 Reputation points
2023-05-31T13:17:33.64+00:00

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.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,604 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Lan Huang-MSFT 25,551 Reputation points Microsoft Vendor
    2023-06-05T01:53:38.7433333+00:00

    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 1,906 Reputation points
    2024-02-26T01:08:36.7666667+00:00

    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