Debugger fails to start because project is built to 'bin\BPC\...' instead of 'bin\...'
See original GitHub issueEnvironment data
dotnet --info
output:
dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 2.1.302
Commit: 9048955601
Runtime Environment: OS Name: Windows OS Version: 6.1.7601 OS Platform: Windows RID: win7-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.302\
Host (useful for support): Version: 2.1.2 Commit: 811c3ce6c0
VSCode Version: Version: 1.25.1 Commit: 1dfc5e5 Date: 2018-07-11T15:43:53.668Z Electron: 1.7.12 Chrome: 58.0.3029.110 Node.js: 7.9.0 V8: 5.8.283.38 Architecture: x64
Steps to Reproduce:
- dotnet new console
- run in debug mode, get error
Narrative: the issue is that when I run “dotnet new console” it’s creating an extra layer of hierarchy that the debug part is not aware of somehow. The screen shot below should illustrate this issue: the paths to the dll are different.
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (6 by maintainers)
Top GitHub Comments
Thanks! This clears it all up.
If you aren’t an admin, you could open a command prompt, run
set PLATFORM=
to clear the environment variable, and launch VS Code from the command prompt. If you do this all the time, you could make yourself a trivial batch script to do this.