Can not set up VS 2022 community

Ben Moore 0 Reputation points
2023-06-11T19:14:02.8666667+00:00

I loaded vs 2022 com after turning off security and all other non essential projects. Loaded the install using as administrator.

Set up projects, again as administrator, using C#, windows, web and MVC. The project(0) appears.

I also cost the project and open it up using file manager and delected the vs file. Open up to no avail.

WebApplication1.csproj

<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>

<TargetFramework>net7.0</TargetFramework>

<Nullable>enable</Nullable>

<ImplicitUsings>enable</ImplicitUsings>

</PropertyGroup>

<ItemGroup>

<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.5" />

<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />

</ItemGroup>

</Project>Project 0

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,199 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,046 Reputation points Microsoft External Staff
    2023-06-12T01:46:59.3866667+00:00

    Hi @Ben Moore

    Welcome to Microsoft Q&A! 

    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. 

    Sincerely,

    Anna


    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.