I am on an air gapped network trying to run a C++ project that uses solution files from Visual Studio, because that is what the rest of my team uses.
I have:
- C# Dev Kit 1.61.22
- C# 2.93.21
- .NET Install Tool 2.3.9 (No network connection so I manually Installed)
- .NET SDK 8.0.300
- VS Code 1.104
- C/C++ 1.3.1
- Windows 11 Enterprise 23H2 amd64
The terminal says:
[info] Installing C# Dependencies...
[info]
[info] Platform: win32, x86_64
[info]
[info] Downloading package 'Language server for Roslyn Copilot Integration'
[info] Failed at stage: downloadPackage
[info] Error: getaddrinfo EAI_AGAIN roslyn.blob.core.windows.net
[info]
[info] Locating .NET runtime version 9.0.1
[info] Dotnet path: C:\Program Files\dotnet\dotnet.exe
[info] Activating C# + C# Dev Kit
[error] Microsoft.CodeAnalysis.LanguageServer client: couldn't create a server.
Error: Component DLL not found: c:\Users\name\.vscode\extensions\ms-dotnettools.csharp-2.93.21\.roslynCopilot\Microsoft.VisualStudio.Copilot.Roslyn.LanguageServer.dll
I am a little worried about it "locating" .NET 9.0.1 when I manually downloaded .NET 8.0.3, but it also looks like it is trying to connect to some server, which I can not do on our Air Gapped network.
Our network can not use copilot, is there some work around that can get .NET 8.0 to work so I can start working on our solution with VS Code with all its extensions instead of Visual Studio?
Getting new software can take a while since this is an air gapped network, so VS-code configurations are easier, but new software like .NET 9.0 is technically possible, just takes a long time.
EDIT: I got .NET 9.0.101 approved and on my machine, but still have the same error. Also don't ask why we use C# to compile our C++ project, ask my boss that. I have all the software to convert to CMAKE but I don't have permission.
EDIT2: It is the C# extension that is failing and my dotnet path does not matter, it all fails in the same way. The C# extension team decided to make their code download this external Roslyn Copilot Language Server File when opening a solution.