C
C#5mo ago
Gustek

✅ 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
Angius
Angius5mo ago
Devkit should not be trying to install anything Also, my condolences that they force you to work with VS Code
Gustek
Gustek5mo ago
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 😦
z0mb
z0mb5mo ago
God I am glad I work at a company that does not have all that red tape.
Angius
Angius5mo ago
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-1592764664
Gustek
Gustek5mo ago
no 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.
Angius
Angius5mo ago
VS Code being VS Code
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
Gustek
Gustek5mo ago
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
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server
More Posts