Offline package tries to download Razor Language Server
See original GitHub issueEnvironment data
VS Code version: 1.31.0 C# Extension version: 1.17.1 (offline build)
Steps to reproduce
- Follow the steps to build an offline VSIX package
- Install the resulting VSIX in VS Code on a computer with no internet connection
- Open VS Code
- Open a C# file
Expected behavior
VS Code should load the C# file without trying to download any packages.
Actual behavior
C# output opens with the following output:
Installing C# dependencies...
Platform: win32, x86_64
Downloading package 'Razor Language Server (Windows / x64)' Failed at stage: downloadAndInstallPackages
Error: getaddrinfo ENOTFOUND download.visualstudio.microsoft.com download.visualstudio.microsoft.com:443
Other info
I’ve tried changing the Razor: Disabled
setting to true
, but even then it still tries to download Razor when VS Code opens a C# file.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
How to install C# dependencies one time or manually or ...
That extension requires the downloads so as to be working properly. · It's not downloading updates, it's downloading dependencies of the project ...
Read more >Razor Language Services - Visual Studio Marketplace
This extension provides support for ASP.NET Core Razor Tag Helpers in Visual Studio 2017. Features. Intellisense; Syntax highlighting; signature ...
Read more >Introducing the new Razor editor in Visual Studio 2022
Download Visual Studio 2022 and make sure to update to 17.0.2 to get the latest Razor updates. Benefits of moving to a Razor...
Read more >VS Code & .NET Core: Offline Installation of Extensions and ...
Steps · You can download the dependencies manually using browser and unzip them in respective locations manually. "%USERPROFILE%.vscode\ ...
Read more >Publishing and deploying a Razor Pages application to IIS on ...
Prior to publishing, you need to ensure that the target server has the NET Core Windows Server Hosting bundle installed. It can be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Those commands did not work for us:
we uninstalled the C# extensions packaged and then re-installing we get this failure:
Downloading package ‘Razor Language Server (Windows / x64)’ Failed at stage: downloadPackage Error: unable to get local issuer certificate
When we try to run debug, we get a prompt to Select the process to attach to with a long list, what we should select?.
just to make clear, the main error here is :
Couldn’t find a debug adapter descriptor for debug type ‘coreclr’ (extension might have failed to activate). Downloading package ‘Razor Language Server (Windows / x64)’ Failed at stage: downloadPackage Error: unable to get local issuer certificate
and the issue started right as we upgraded VSCode to latest version 1.56.2
just in case; we do not have this folder: C:\Users…vscode\extensions\ms-vscode-csharp not even the .razor directory. we have the folder: ms-dotnettools.csharp-1.23.11. And inside this there is a .razor folder.
is this a bug on latest VCode Version as it did not happens in previous ones? your help please_
This is still happening, I’ve been trying to get passed this process for two days to no avail. smh