Open chrmarti opened 7 years ago
@RoboBurned what you are trying to do is never going to work as we don't support desktop framework debugging. You need to use Visual Studio for that.
Did you need to manually create your launch.json file? Or did you get this prompt? -
Support for Desktop framework (a.k.a. full framework) is tracked with https://github.com/OmniSharp/omnisharp-vscode/issues/813
@gregg-miskelly I did not create launch.json and did not modified it manually. I see the prompt and pressed YES. My launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceRoot}\\bin\\Debug\\net461\\1.exe",
"args": [],
"cwd": "${workspaceRoot}",
"console": "internalConsole",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
@RoboBurned thanks. In this case we have a bug in our launch.json generation as we shouldn't be creating a launch.json for desktop framework apps.
Hmmm... did this regress or was it always a bug?
I don't know.
https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/assets.ts#L290
It seems like it never validates to see what frameworks is requested in project.json projects. containsDotNetCoreProjects() returns true since it found Net461.
That's what I was wondering. I suspect that I just assumed 'project.json' == '.NET Core' when I wrote the original asset generation code.
@gregg-miskelly, @WardenGnaw: Is this critical for 1.9, or is it OK to push to 1.10?
I moved it.
From @RoboBurned on April 5, 2017 6:22
Steps to Reproduce:
2 Write Hello world program.cs:
namespace ConsoleApplication { public class Program { public static void Main(string[] args) { ConfigurationBuilder builder = new ConfigurationBuilder(); builder.Build(); Console.WriteLine("Hello World!"); } } }