-
Notifications
You must be signed in to change notification settings - Fork 685
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
launch.json cannot detect the project binary #1167
Comments
Originally reported @ microsoft/vscode#10040 |
When the C# extension loads, it will offer to generate a launch.json for you. However, it looks like that didn't happen and it's not clear to me where in your repro steps that you actually opened the project in VS Code. Try the following: |
Thanks a lot, sir.
|
You can achieve this today by manually adding configurations to the launch.json file. However, you're right that this can become inconvenient as the project grows larger. We've asked for a feature in VS Code that would allows us to dynamically add launch.json configurations from the underlying project structure that we detect, which could solve this. But it hasn't been accepted or implemented yet (microsoft/vscode#10861).
That would be a change to VS Code itself, which isn't something we can handle from the extension.
We're thinking of doing something like that in the future (#310).
This is possible as well. I've noticed that the Bash Debug extension tries to do something like that. |
Thanks very much for your feedback @qiansen1386. I'm going to go ahead and close this, as we already have at least one issue tracking further work. Do let us know if you have further feedback. Thanks! |
Thanks @DustinCampbell, it worked for me. |
Thanks DustinCampbell. i had same issues in my project |
had the same problem and I had to download the version that specified in the console error. And then |
dotnet new dotnet restore But still I can't run the program.cs with F5 because of this line in launch.json: I don't have a bin/Debug folder in my sln folder because I couldn't even debug it once. I'm stuck on this error before it even starts debugging/running. |
Environment data
Product Information:
Version: 1.0.0-preview2-1-003177
Commit SHA-1 hash: a2df9c2576
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
VS Code version: 1.8.1
C# Extension version:1.6.2
Steps to reproduce
launch.json
For
"program": "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>",
, you must find and paste in the exact path of the dll file like${workspaceRoot}/bin/Debug/netcoreapp1.1/project1.dll
in order to hook the debuger up. In this case, what's the point of having the wildcard placeholder anyway?IMO, the real issue here is the project kick-starting process is way too tedious for a console project.
Actual behavior
You see, to start the project, we have to go through following steps:
bin
folder under the root folder, otherwise the.vscode/
will not work. If we need more than one project -> Open more than one new windows, instead of creating multiple sub-folder in the same workspace.dotnet new
dotnet restore
launch.json
profile to ".net Core"Expected behavior
What we really want:
dotnet new
in it.I wonder if it is possible. Is this the wrong place to report the issue?
The text was updated successfully, but these errors were encountered: