✅ C# Dev Kit and .NET 8
On my corporate laptop I have .NET 8 SDK and Visual Studio Code with C# Dev Kit installed.
But looks like the dev kit tries to install .NET 7 instead and it keeps failing as it is being blocked.
Getting things approved and installed/unblocked is a pain and lots of waiting. How can I get it to work with .NET 8?
9 Replies
Devkit should not be trying to install anything
Also, my condolences that they force you to work with VS Code
well, I am their first dev, getting Visual Studio or Rider is yet another approval and purchase request 🙄 and I felt setting up Code will be easier 🙈
when I open C# solution, first log in output is:
ms-dotnettools.csdevkit requested to download the .NET Runtime. Downloading .NET version(s) 7.0.15~x64 .........Error!and it then just logs plenty of failed download errors most ridiculous part is, they don't really know what they are approving, I could request some malware to be installed as long defender doesn't flag it they would do it, just would take couple days and if license is required I would need to write purchase request to explain why 😦
God I am glad I work at a company that does not have all that red tape.
What .NET version does the project you open specify?
Also, see if you don't have a
globals.json
somewhere, setting .NET version used to 7.x
Also, seems you can manually tell the extension where to find all the things it wants: https://github.com/microsoft/vscode-dotnettools/issues/138#issuecomment-1592764664no globals, TargetFramework i net8.0. at this point it is just a template project created using
dotnet new webapi
where dotnet version is 8.0
will check the manual settings, thank you
that helped, to some degree, no more download erros and looks like LSP is working, code navigation works more or less. But no intelisense 😦 well, that is a progress, thank you.VS Code being VS Code
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
I fnally got them to disable proxt for an hour for me and it succeeded to install 🙂 although still not fully wokring for some reason 😦
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View