-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening project does not download C# debugger automatically #1433
Comments
@douglasstarnes Currently there is nothing the C# extension can reasonably do to download on project open. We have been asking the VS Code team to provide support for this. When VS Code supports this, we are tracking the C# extension side of the work in #1150. But I am not sure why the |
@gregg-miskelly: The issue of commands not loading the extension was also mentioned in #1375. |
@gregg-miskelly In previous version of vscode the prompts came up automatically on opening a project folder. The user still had to confirm the prompt to start the download(s). They didn't start without confirming the prompt. But the issue I am having is that there is no prompt and trying to run commands manually gives the error. |
@douglasstarnes: It did come up previously, but only if you have a C# file open. In the project.json days, the download would start because of the presence of a well-known file name: 'project.json'. There isn't yet a way in VS Code to load the extension for a file with wildcards (e.g. *.csproj, *.sln, *.cs). |
Seems like this is a duplicate of #1150. @douglasstarnes, do you agree? |
@DustinCampbell Ok, I understand. Opening a C# file triggers the prompt to download the debugging assets and restore dependencies. I'm going to close this now. Thanks for the help! /cc @gregg-miskelly |
Environment data
dotnet --info
output:.NET Command Line Tools (1.0.3)
Product Information:
Version: 1.0.3
Commit SHA-1 hash: 37224c9917
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.3
VS Code version:
1.11.2
C# Extension version:
1.9.0
Steps to reproduce
Open a new .NET Core project folder
Expected behavior
Visual Studio Code should prompt to download the debugger, add debugging resources, and restore dependencies.
Actual behavior
Nothing.
In addition I can try to run the command manually in the Command Palette but I get the error:
command 'csharp.downloadDebugger' not found
However, it downloads the debugger (only the first time) and then adds the debugging resource and restores the dependencies successfully. Without the error and extra step of manually running the command, it works. I've reinstalled the C# extension and tried both the stable and insider versions of VS Code. It's the same in both of them.
The text was updated successfully, but these errors were encountered: