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

The extension doesn't seem to work when .NET 5 is installed side-by-side #2153

Closed
hajekj opened this issue Jun 11, 2020 · 0 comments · Fixed by #2158
Closed

The extension doesn't seem to work when .NET 5 is installed side-by-side #2153

hajekj opened this issue Jun 11, 2020 · 0 comments · Fixed by #2158
Labels
Milestone

Comments

@hajekj
Copy link

hajekj commented Jun 11, 2020

On my computer, I have following .NET Core SDKs installed:

C:\Users\hajek>dotnet --list-sdks
2.1.800-preview-009696 [C:\Program Files\dotnet\sdk]
2.1.800 [C:\Program Files\dotnet\sdk]
2.2.400-preview-010219 [C:\Program Files\dotnet\sdk]
2.2.400 [C:\Program Files\dotnet\sdk]
3.0.100 [C:\Program Files\dotnet\sdk]
3.1.300-preview-015135 [C:\Program Files\dotnet\sdk]
5.0.100-preview.2.20176.6 [C:\Program Files\dotnet\sdk]

When trying to create a Function project from VS Code, I end up with following error:

You must have the .NET Core SDK installed to perform this operation. See here for supported versions.

I tried uninstalling .NET SDK v5 and it seems to work. So I thought that creating global.json in the root disk folder (eg. C:) but not when I do it in the project folder.

{
    "sdk": {
        "version": "3.1.400-preview-015151",
        "rollForward": "disable"
    }
}

I believe this may be related to #1986

@ejizba ejizba added the bug label Jun 12, 2020
@ejizba ejizba added this to the 0.23.0 milestone Jun 12, 2020
@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants