question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Offline package tries to download Razor Language Server

See original GitHub issue

Environment data

VS Code version: 1.31.0 C# Extension version: 1.17.1 (offline build)

Steps to reproduce

  1. Follow the steps to build an offline VSIX package
  2. Install the resulting VSIX in VS Code on a computer with no internet connection
  3. Open VS Code
  4. 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:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
DanSau24commented, May 18, 2021

Those commands did not work for us:

  1. git clean -xfd
  2. Update to the latest version of node
  3. npm i -g gulp
  4. gulp vsix:offline:package

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_

1reaction
breadnonecommented, Jul 6, 2020

This is still happening, I’ve been trying to get passed this process for two days to no avail. smh

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found