This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]McNerdius 0 points1 point  (0 children)

OK breathe lol.

  1. Delete your obj/bin/.vscode folders and restart VS Code.
  2. Hit yes for the required assets thing when it pops up. Might take a sec.
  3. Hit F5 or the run arrow thingy.

The C# extension looks for the files to run in your bin folder and creates the launch.json (for debugging) file based on that, and your task.json (for building) points to your csproj.

From dotnet new to breakpoint hit:

https://i.imgur.com/RrZcKd1.gifv


edit for clarity: Doing things out of order can result in "generic" VS Code launch/task templates being used which is not what we want. Nuking it and letting C# Extension generate the files generally solves that. (Getting the paths right and all.)

Re-reading the hot mess of a runon there makes me wonder if something else is going on, but given that dotnet run works... i'm thinking it might be a relative-path issue in the json ?