Closed russau closed 1 year ago
Hi, thanks for raising this issue! I can replicate your behaviour with the hello world template and was also able to get the debugger to run by removing that property in the omnisharp.json
file like you suggested.
Let me take a look around to see if there are any side effects from removing that property from our templates, or if there is anything we can do to improve this.
Hi, sorry about the lack of updates regarding this. For those that may be experiencing this issue, please double check that mono
is installed on your system. Depending on OS type, version and .NET SDK versions, mono
may not come bundled when installing other prerequisites. Please reopen this or create a new issue if there are any further developments or problems.
This line is making unit tests in Visual Studio Code fail to debug. When I remove the
msbuild
setting and reload the window my unit tests work. Does this setting need to be here? Without it I'm able tosam build
andsam deploy
okay.https://github.com/aws/aws-sam-cli/blob/bad9a6226d0b871bf531ba649ee12a6ca90aa984/samcli/lib/init/templates/cookiecutter-aws-sam-hello-dotnet/%7B%7Bcookiecutter.project_name%7D%7D/omnisharp.json#L9
The error happens when you open the project from the directory that has
omnisharp.json
in the root (like below), and attempt to debug a unit test. I can supply a repro project if that helps.In the omnisharp logs I see the error below: