Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK 5.0 net found when installed #17467

Closed
ConnorKolan opened this issue May 6, 2021 · 2 comments
Closed

SDK 5.0 net found when installed #17467

ConnorKolan opened this issue May 6, 2021 · 2 comments
Labels
untriaged Request triage from a team member

Comments

@ConnorKolan
Copy link

OS: Windows
Problem encountered: https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/create

Like in issue #4605 I have installed the SDK and tried making a new hello world project, but when I type "dotnet new console -o myApp" VSCode gives me the following:

PS D:\Programme\VSCodeNetCoreTest> dotnet new console -o myApp
Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
  * You intended to execute a .NET program:
      The application 'new' does not exist.
  * You intended to execute a .NET SDK command:
      It was not possible to find any installed .NET SDKs.
      Install a .NET SDK from:
        https://aka.ms/dotnet-download

I have added C:\Program Files\dotnet to PATH but it still wont work
What am I doing wrong ?

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label May 6, 2021
@ConnorKolan
Copy link
Author

0

The exact details are discussed here: #14916

TL:DR There were two dotnet.exe files in Program Files and Program Files(x86), that I had to delete both and reinstall via Visual Studio 2019 (porably not the only method).

Now there is only one dotnet.exe in Program Files and it finally works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

1 participant