Skip to content
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

Cannot download .NET Core Debugger on Windows 10 #545

Closed
zeh opened this issue Jul 8, 2016 · 3 comments
Closed

Cannot download .NET Core Debugger on Windows 10 #545

zeh opened this issue Jul 8, 2016 · 3 comments

Comments

@zeh
Copy link

zeh commented Jul 8, 2016

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview1-002702)

Product Information:
 Version:     1.0.0-preview1-002702
 Commit Sha:  6cde21225e

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64

VS Code version: 1.3.0
C# Extension version: 1.2.1

Steps to reproduce

  1. Run VSC
  2. Install "C#" extension, enable, restart
  3. Run "Debug: Download .NET Core Debugger"

Expected behavior

.NET Core Debugger installed, C# working.

Actual behavior

Error bar on top with message "Error while installing .NET Core Debugger."

The output of coreclr-debugger seems helpful:

Creating C:\Users\user\.vscode\extensions\ms-vscode.csharp-1.2.1\coreclr-debug\project.json
Telemetry is: Enabled

log  : Restoring packages for C:\Users\user\.vscode\extensions\ms-vscode.csharp-1.2.1\coreclr-debug\project.json...

error: System.Linq 4.1.0 provides a compile-time reference assembly for System.Linq on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.
error: System.Security.Cryptography.Algorithms 4.2.0 provides a compile-time reference assembly for System.Security.Cryptography.Algorithms on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.
error: System.AppContext 4.1.0 provides a compile-time reference assembly for System.AppContext on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.
error: System.Linq.Expressions 4.1.0 provides a compile-time reference assembly for System.Linq.Expressions on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.

error: System.Security.Cryptography.X509Certificates 4.1.0 provides a compile-time reference assembly for System.Security.Cryptography.X509Certificates on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.
error: System.Text.RegularExpressions 4.1.0 provides a compile-time reference assembly for System.Text.RegularExpressions on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.

error: One or more packages are incompatible with .NETCoreApp,Version=v1.0 (win7-x64).

info : Committing restore...

log  : Writing lock file to disk. Path: C:\Users\user\.vscode\extensions\ms-vscode.csharp-1.2.1\coreclr-debug\project.lock.json

log  : C:\Users\user\.vscode\extensions\ms-vscode.csharp-1.2.1\coreclr-debug\project.json
log  : Restore failed in 894ms.

Error: 
Errors in C:\Users\user\.vscode\extensions\ms-vscode.csharp-1.2.1\coreclr-debug\project.json


NuGet Config files used:

Error:     System.Linq 4.1.0 provides a compile-time reference assembly for System.Linq on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.
    System.Security.Cryptography.Algorithms 4.2.0 provides a compile-time reference assembly for System.Security.Cryptography.Algorithms on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.
    System.AppContext 4.1.0 provides a compile-time reference assembly for System.AppContext on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.
    System.Linq.Expressions 4.1.0 provides a compile-time reference assembly for System.Linq.Expressions on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.
    System.Security.Cryptography.X509Certificates 4.1.0 provides a compile-time reference assembly for System.Security.Cryptography.X509Certificates on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.
    System.Text.RegularExpressions 4.1.0 provides a compile-time reference assembly for System.Text.RegularExpressions on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with win7-x64.
    One or more packages are incompatible with .NETCoreApp,Version=v1.0 (win7-x64).

    C:\Users\user\.vscode\extensions\ms-vscode.csharp-1.2.1\coreclr-debug\NuGet.config

Feeds used:
    https://api.nuget.org/v3/index.json

dotnet exited with error code 1

Of note is the mention that there's no win7-x64 distribution available (I'm on win10-x64 instead). And sure enough, C:\Users\user\.vscode\extensions\ms-vscode.csharp-1.2.1\coreclr-debug\project.json contains:

  ...
  "runtimes": {
    "win7-x64": {}
  }
  ...

Not sure if it's important however.

@zeh zeh changed the title Cannot download .NET Core Debugger on Windows 10 after C# Cannot download .NET Core Debugger on Windows 10 Jul 8, 2016
@chuckries
Copy link
Contributor

It appears that you are on the rc2 version of .NET Core, which is no longer supported by the extension. You need to upgrade to .NET Core 1.0 or manually install an older version of the extension from here

@zeh
Copy link
Author

zeh commented Jul 8, 2016

@chuckries You seem to be right. I downloaded the ".NET Core SDK for Windows" from that link and it now seems to work as intended. Sorry I couldn't figure it out.

Thanks! I suppose this can be closed.

@chuckries
Copy link
Contributor

Happy to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants