diff --git a/build/RepositoryBuild.targets b/build/RepositoryBuild.targets index 23dadbcd76676bf3d864d36b089203881f601ac0..be43e8dc7563c83479d29f82dff02c733896556f 100644 --- a/build/RepositoryBuild.targets +++ b/build/RepositoryBuild.targets @@ -69,6 +69,9 @@ <PropertyGroup> <SkipTestsDueToMissingSharedFx Condition="'$(InstallSharedRuntimeFromPreviousBuild)' != 'true' And '$(TestsRequiredTheSharedRuntime)' == 'true' ">true</SkipTestsDueToMissingSharedFx> + <RepositoryBuildArguments Condition="'$(CI)'== 'true'">$(RepositoryBuildArguments) -ci</RepositoryBuildArguments> + <RepositoryBuildArguments Condition="'$(CI)'== 'true' AND '$(OS)' != 'Windows_NT'">$(RepositoryBuildArguments) --dotnet-home '$(DOTNET_HOME)'</RepositoryBuildArguments> + <RepositoryBuildArguments Condition="'$(CI)'== 'true' AND '$(OS)' == 'Windows_NT'">$(RepositoryBuildArguments) -DotNetHome '$(DOTNET_HOME)'</RepositoryBuildArguments> <!-- Should reduce allowable package feeds to only nuget.org. --> <RepositoryBuildArguments>$(RepositoryBuildArguments) /p:AspNetUniverseBuildOffline=true</RepositoryBuildArguments> <!-- If there are duplicate properties, the properties which are defined later in the order would override the earlier ones -->