Isolate SDK tests from repo Directory.Build files

This commit is contained in:
Daniel Plaisted 2019-04-15 11:22:36 -07:00
parent 970fd933df
commit eaa53417bd

View file

@ -38,6 +38,14 @@
</ItemGroup>
<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)"
Targets="RunTestsAsTool"
Properties="ToolCommandName=testSdk%(SdkTest.Identity);TestProjectName=Microsoft.NET.%(SdkTest.Identity).Tests"