Visual Studio Community 2019 installation probelms

asked 2021-11-18T15:28:00.183+00:00
David Lane-Joynt 21 Reputation points

I have downloaded Visual Studio 2019 and cloned a previous project from GitHub, but the project will not load as VS cannot find the SDK.

I am not a professional developer, I can put together a website based on ASP.NET but find getting the setup working difficult.
I did not realise that VS 2019 would install the SDK, so I separately downloaded the .NET SDK from the Microsoft site.

From the list of Apps in settings I appear to have two SDK's installed
Microsoft .NET SDK 5.0.403 and
Microsoft .NET SDK 5.0.403 from Visual Studio

My PATH environment variable has C:\Program Files\dotnet\ and there is a file dotnet.exe in the folder C:\Program Files\
there is also a file dotnet.exe in the folder C:\Program Files (x86)\dotnet but I don't know if this is relevant

I have run the command dotnet --info and this gives a lot of runtimes as being installed but says that "No SDKs were found"

So I appear to have two SDKs installed but neither Windows 10 (in the dotnet --info command) or Visual Studio can find them.

Any help to resolve this would be much appreciated

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.
695 questions
No comments
{count} votes

Accepted answer
  1. answered 2021-11-19T09:25:42.207+00:00
    Anna Xiu-MSFT 11,006 Reputation points Microsoft Employee

    Hi @David Lane-Joynt ,

    Welcome to Microsoft Q&A!

    According to your description, it seems be caused by multiple .NET installations on your system.
    C:\Program Files (x86)\dotnet\dotnet.exe (x86——no SDK)
    C:\Program Files\dotnet\dotnet.exe (x64——Microsoft .NET SDK 5.0.403)

    You can remove c:\Program Files (x86)\dotnet\dotnet.exe from System Variables Path and try again.

    For more details, you can also refer to the similar issue:
    https://stackoverflow.com/a/67049415/16678270

    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.


0 additional answers

Sort by: Most helpful