dotnet --info output:
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5
Runtime Environment:
OS Name: ubuntu
OS Version: 17.04
OS Platform: Linux
RID: ubuntu.17.04-x64
VS Code version:
Version 1.11.1
Commit d9484d12b38879b7f4cdd1150efeb2fd2c1fbf39
Date 2017-04-06T13:55:56.395Z
Shell 1.4.6
Renderer 53.0.2785.143
Node 6.5.0
C# Extension version:
c# 1.9.0 - beta2
Just create a new project using the command "dotnet new", then open the vscode and try to debug the project.
Debug the program.
The .NET Core Debugger is still being downloaded. See the C# Output Window for more information.
https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/platform.ts
(...)
private static getExactRuntimeId(distributionName: string, distributionVersion: string): string {
switch (distributionName) {
case 'ubuntu':
if (distributionVersion === "14.04") {
// This also works for Linux Mint
return LinuxRuntimeId.ubuntu_14_04;
}
else if (distributionVersion === "16.04") {
return LinuxRuntimeId.ubuntu_16_04;
}
else if (distributionVersion === "16.10") {
return LinuxRuntimeId.ubuntu_16_10;
}
break;
(...)
Is it safe to make another else if to my current version, returning LinuxRuntimeId.ubuntu_16_10??
Thanks,
Jos茅 Am铆lcar Casimiro
@jcasimiro that depends on if Ubuntu 17 is backwards compatible enough with 16.10 that .NET Core 16.10 will actually work (in the past, they haven't been). Have you tried running a basic 'hello world' app using the 16.10 .NET Core by chance?
Hello,
Yes the application runs fine, only the debugger is not working.
I'm new to this project, but i read somewhere that i could define by configuration what version of linux i want to use, is this correct?
Thanks
@jcasimiro The next version of the C# extension will support that, but our current version doesn't yet. Let me send you a private version with the new support for specifying the runtime id and you can give that a try.
Thanks, you're the man. ;)
There is a private attached to this comment. Please:
Hope this helps.
Gregg it worked!!! Thank you man.
Updating C# dependencies...
Platform: linux, x86_64, name=ubuntu, version=17.04
Downloading package 'Mono Runtime (Linux / x64)' (1545 KB) .................... Done!
Downloading package 'Mono Framework Assemblies' (5829 KB) .................... Done!
Downloading package 'OmniSharp (Mono 4.6)' (21959 KB) .................... Done!
Installing package 'Mono Runtime (Linux / x64)'
Installing package 'Mono Framework Assemblies'
Installing package 'OmniSharp (Mono 4.6)'
Finished
If 'ubuntu' is binary compatible with a Linux distribution officially supported by .NET Core, you may be able to resolve this by setting 'csharp.fallbackDebuggerLinuxRuntimeId' in 'File->Preferences->Settings' and restarting VS Code.
Obviously I changed the setting.
Thank you!! Solved!!
@jcasimiro Excellent! Thanks for trying. I will close this for now then.
I was not helped by this recipe unfortunately.

@alikzao the problem is that true is not a valid value for fallbackDebuggerLinuxRuntimeId. If you are on Ubuntu17, you likely want ubuntu.16.10-x64. There is autocomplete to help you type in a valid value.
@gregg-miskelly Thank you, it works.
And it's not required to install a beta version of OmniSharp because the latest one (v1.11) works fine.
You just need to add "csharp.fallbackDebuggerLinuxRuntimeId": "ubuntu.16.10-x64" and everything will be ok.
@gregg-miskelly its not working pleaze provide me exact steps what to do to debug code in ubuntu 17.04 .net core c#
I am on vacation this week, but at this point I would recommend following instructions from the wiki on installing the most recent beta, as that has official support and is just about to go out on the release channel.
Most helpful comment
@alikzao the problem is that
trueis not a valid value for fallbackDebuggerLinuxRuntimeId. If you are on Ubuntu17, you likely wantubuntu.16.10-x64. There is autocomplete to help you type in a valid value.