vscode-csharp
vscode-csharp copied to clipboard
[BUG] Launch adds hyphen and breaks path
Originally from https://github.com/microsoft/vscode-dotnettools/issues/1425 by @georg-eckert-zeiss
Describe the Issue
When adding a configuration and trying to run it a hyphen ("-") is added to the executable. Therefore I get an error that the file cannot be found.
Steps To Reproduce
- in ubuntu linux clone a C# project like nuget-inspector
- install the C# dev kit extension in vs code
- create a launch.json
- add a new configuration ".NET: launch executable file (Console)"
- launch it
Expected Behavior
file is launched
instead a hyphen is added and changes the path from
/bin/Debug/net6.0/linux-x64/nuget-inspector.dll
to
/bin/Debug/net6.0/linux-x64/-nuget-inspector.dll
Environment Information
- OS: Ubuntu 22.04
- VS Code version: 1.92.2 azure snap
- Extension version: v1.9.55