Isolate SDK tests from repo Directory.Build files
This commit is contained in:
parent
970fd933df
commit
eaa53417bd
1 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,14 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="RunSdkTests">
|
<Target Name="RunSdkTests">
|
||||||
|
|
||||||
|
<!-- SDK tests use the $(TEMP)\dotnetSdkTests as the working directory, isolate that from any higher-level
|
||||||
|
Directory.Build files (TEMP is set to a folder in the repo when running in CI) -->
|
||||||
|
<Copy SourceFiles="$(RepoRoot)TestAssets\Directory.Build.props;$(RepoRoot)TestAssets\Directory.Build.targets"
|
||||||
|
DestinationFolder="$(TEMP)\dotnetSdkTests"
|
||||||
|
SkipUnchangedFiles="true"
|
||||||
|
/>
|
||||||
|
|
||||||
<MSBuild Projects="$(MSBuildProjectFullPath)"
|
<MSBuild Projects="$(MSBuildProjectFullPath)"
|
||||||
Targets="RunTestsAsTool"
|
Targets="RunTestsAsTool"
|
||||||
Properties="ToolCommandName=testSdk%(SdkTest.Identity);TestProjectName=Microsoft.NET.%(SdkTest.Identity).Tests"
|
Properties="ToolCommandName=testSdk%(SdkTest.Identity);TestProjectName=Microsoft.NET.%(SdkTest.Identity).Tests"
|
||||||
|
|
Loading…
Reference in a new issue