Skip to content

Commit

Permalink
Enable .NET Framework F5 & VS TestExplorer support for libraries (dot…
Browse files Browse the repository at this point in the history
…net#31873)

* Enable .NET Framework F5 & TestExplorer

Adding a launchSettings profile to enable .NET Framework F5 scenarios.
Also setting the DEVPATH variable for the -vs hook to use the locally
built .NET Framework runtime.

* Set DEVPATH env in F5
  • Loading branch information
ViktorHofer authored Feb 6, 2020
1 parent 90a2d87 commit 719d627
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ if ($vs) {

# This tells .NET Core to use the same dotnet.exe that build scripts use
$env:DOTNET_ROOT="$PSScriptRoot\..\artifacts\bin\testhost\netcoreapp5.0-Windows_NT-$configuration-$archTestHost";
$env:DEVPATH="$PSScriptRoot\..\artifacts\bin\testhost\net472-Windows_NT-$configuration-$archTestHost";
}

# This tells MSBuild to load the SDK from the directory of the bootstrapped SDK
Expand Down
9 changes: 9 additions & 0 deletions eng/testing/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
"executablePath": "$(TestHostRootPath)dotnet.exe",
"commandLineArgs": "$(RunArguments) -parallel none",
"workingDirectory": "$(RunWorkingDirectory)"
},
".NET Framework xUnit Console": {
"commandName": "Executable",
"executablePath": "$(RunWorkingDirectory)$(RunCommand)",
"commandLineArgs": "$(RunArguments) -parallel none",
"workingDirectory": "$(RunWorkingDirectory)",
"environmentVariables": {
"DEVPATH": "$(TestHostRootPath)"
}
}
}
}

0 comments on commit 719d627

Please sign in to comment.