diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index baf0b306f73cc..41e9c94c00dee 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -12,7 +12,11 @@
"settings": {
// Loading projects on demand is better for larger codebases
- "omnisharp.enableMsBuildLoadProjectsOnDemand": true
+ "omnisharp.enableMsBuildLoadProjectsOnDemand": true,
+ "omnisharp.enableRoslynAnalyzers": true,
+ "omnisharp.enableEditorConfigSupport": true,
+ "omnisharp.enableAsyncCompletion": true,
+ "omnisharp.testRunSettings": "${containerWorkspaceFolder}/artifacts/obj/vscode/.runsettings"
},
// Add the IDs of extensions you want installed when the container is created.
diff --git a/.devcontainer/scripts/onCreateCommand.sh b/.devcontainer/scripts/onCreateCommand.sh
index 983db183068c6..faf7cb08d1afa 100755
--- a/.devcontainer/scripts/onCreateCommand.sh
+++ b/.devcontainer/scripts/onCreateCommand.sh
@@ -4,6 +4,8 @@ set -e
# prebuild the repo, so it is ready for development
./build.sh libs+clr -rc Release
+# restore libs tests so that the project is ready to be loaded by OmniSharp
+./build.sh libs.tests -restore
# save the commit hash of the currently built assemblies, so developers know which version was built
git rev-parse HEAD > ./artifacts/prebuild.sha
diff --git a/eng/testing/runsettings.targets b/eng/testing/runsettings.targets
index b5ff64cc9ea26..a02637840ac45 100644
--- a/eng/testing/runsettings.targets
+++ b/eng/testing/runsettings.targets
@@ -7,6 +7,7 @@
false
$(RunSettingsIntermediateOutputFilePath)
$(RunSettingsAppOutputFilePath)
+ $(ArtifactsObjDir)vscode/.runsettings
$(RunSettingsAppOutputFilePath)
@@ -46,6 +47,12 @@
WriteOnlyWhenDifferent="true"
Overwrite="true" />
+
+
$(RunSettingsOutputFilePath)
diff --git a/src/libraries/pretest.proj b/src/libraries/pretest.proj
index fc2fee13d5c33..dc879eb62d5f1 100644
--- a/src/libraries/pretest.proj
+++ b/src/libraries/pretest.proj
@@ -5,6 +5,7 @@
true
true
+ true