Generate .runsettings file to be able to run and debug tests on vscode in codespace with prebuild #61684
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Generate .runsettings file for VSCode as part of libs.pretest. Unfortunately we can't use the .runsettings file that we generate for Visual Studio as the paths that we use are specific for every test project containing configuration settings and for VSCode we need to point OmniSharp to the .runsettings file via a global setting that applies to all projects. However I'm not concerned about this as much as in VS we have more complex settings that are specific to each test project.
After adding this, people can open a test file and just click on "Debug Test" on intellicode and then debug it by just setting a breakpoint when in a codespace.
In order to support this locally we need a few more tweaks, I will put up a separate PR for that.