diff --git a/build.proj b/build.proj index d630ae8db..1538261a9 100644 --- a/build.proj +++ b/build.proj @@ -73,8 +73,15 @@ WorkingDirectory="$(DotnetCliBuildDirectory)"/> + + + + diff --git a/build/Microsoft.DotNet.Cli.BuildInfo.targets b/build/Microsoft.DotNet.Cli.BuildInfo.targets index 0588c1427..017d46a28 100644 --- a/build/Microsoft.DotNet.Cli.BuildInfo.targets +++ b/build/Microsoft.DotNet.Cli.BuildInfo.targets @@ -3,7 +3,8 @@ + Condition=" !Exists('$(BuildInfoProps)') " + DependsOnTargets="BuildDotnetCliBuildFramework"> diff --git a/build/Microsoft.DotNet.Cli.HostInfo.targets b/build/Microsoft.DotNet.Cli.HostInfo.targets index 48130c926..231589d46 100644 --- a/build/Microsoft.DotNet.Cli.HostInfo.targets +++ b/build/Microsoft.DotNet.Cli.HostInfo.targets @@ -3,7 +3,8 @@ + Condition=" !Exists('$(HostInfoProps)') " + DependsOnTargets="BuildDotnetCliBuildFramework"> diff --git a/run-build.ps1 b/run-build.ps1 index f451330f0..5363dc222 100644 --- a/run-build.ps1 +++ b/run-build.ps1 @@ -114,8 +114,7 @@ if ($NoBuild) } else { - dotnet msbuild build\Microsoft.DotNet.Cli.BuildInfo.targets /t:WriteBuildInfoProps - dotnet msbuild build\Microsoft.DotNet.Cli.HostInfo.targets /t:WriteHostInfoProps + dotnet msbuild build.proj /t:WriteDynamicPropsToStaticPropsFiles dotnet msbuild build.proj /m /v:diag /p:Architecture=$Architecture $ExtraParameters if($LASTEXITCODE -ne 0) { throw "Failed to build" } } diff --git a/run-build.sh b/run-build.sh index de9e0aa11..bf71fce5c 100755 --- a/run-build.sh +++ b/run-build.sh @@ -179,8 +179,7 @@ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 echo "${args[@]}" if [ $BUILD -eq 1 ]; then - dotnet msbuild build/Microsoft.DotNet.Cli.BuildInfo.targets /t:WriteBuildInfoProps - dotnet msbuild build/Microsoft.DotNet.Cli.HostInfo.targets /t:WriteHostInfoProps + dotnet msbuild build.proj /t:WriteDynamicPropsToStaticPropsFiles dotnet msbuild build.proj /m /v:diag /p:Architecture=$ARCHITECTURE "${args[@]}" else echo "Not building due to --nobuild"