0

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.

4
  • Sorry I couldn't provide more logs, I do not have access to copy paste so this is all manually typed. Commented Oct 10 at 15:00
  • At some point, the money leaves the bank. There should be a procedure for introducing what amounts to a "new" development machine; instead of creating some fatal combination "from within". Commented Oct 10 at 15:14
  • 2
    Why are you worried about errors related to .NET and C# for a C++ project? Commented Oct 10 at 15:45
  • @phuzi I need C# Dev Kit in order to run solution (Visual Studio) projects. It is like CMAKE, but I do not have the pull in our organization to change our C++ project to CMAKE. I know it is dumb using the C# equivalent of CMAKE for our C++ project, but I have no say. Commented Oct 10 at 16:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.