diff --git a/Directory.Build.props b/Directory.Build.props
index 7271e92ed2..5906f578ac 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -47,7 +47,7 @@ tools\TestAssetsDependencies\TestAssetsDependencies.csproj
-
+
diff --git a/Microsoft.DotNet.Cli.sln b/Microsoft.DotNet.Cli.sln
index 5929564f2a..d459a1cbc3 100644
--- a/Microsoft.DotNet.Cli.sln
+++ b/Microsoft.DotNet.Cli.sln
@@ -54,7 +54,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{89905EC4
build\RestoreDependency.proj = build\RestoreDependency.proj
build\sdks\sdks.csproj = build\sdks\sdks.csproj
build\Signing.proj = build\Signing.proj
- build\Stage0.props = build\Stage0.props
+ build\SetupPreviousStage.props = build\SetupPreviousStage.props
build\Test.targets = build\Test.targets
build\Version.props = build\Version.props
build\VersionBadge.props = build\VersionBadge.props
diff --git a/build.proj b/build.proj
index 2bbc62e48b..837cf150e2 100644
--- a/build.proj
+++ b/build.proj
@@ -20,7 +20,7 @@
DependsOnTargets="MSBuildWorkaroundTarget;
RestoreDotnetCliBuildFramework">
-
@@ -39,7 +39,7 @@
$(ExtraRestoreArgs) --disable-parallel
-
diff --git a/build/BundledTemplates.proj b/build/BundledTemplates.proj
index 014f5bc92d..dfc66e1116 100644
--- a/build/BundledTemplates.proj
+++ b/build/BundledTemplates.proj
@@ -23,7 +23,7 @@
-
diff --git a/build/MSBuildExtensions.targets b/build/MSBuildExtensions.targets
index c6dd9f7aee..e24b2225b8 100644
--- a/build/MSBuildExtensions.targets
+++ b/build/MSBuildExtensions.targets
@@ -75,7 +75,7 @@
NuGetPackagesDir=$(NuGetPackagesDir);
DependencyPackageName=%(ExtensionPackageToRestore.Identity);
DependencyPackageVersion=%(ExtensionPackageToRestore.Version);
- Stage0Directory=$(Stage0Directory)
+ PreviousStageDirectory=$(PreviousStageDirectory)
diff --git a/build/Prepare.targets b/build/Prepare.targets
index 8c3cc14427..67ae12cab9 100644
--- a/build/Prepare.targets
+++ b/build/Prepare.targets
@@ -54,7 +54,7 @@
-
@@ -79,7 +79,7 @@
-
diff --git a/build/RestoreDependency.proj b/build/RestoreDependency.proj
index 142f5e9298..19f209ce02 100644
--- a/build/RestoreDependency.proj
+++ b/build/RestoreDependency.proj
@@ -33,7 +33,7 @@
-
diff --git a/build/Stage0.props b/build/SetupPreviousStage.props
similarity index 50%
rename from build/Stage0.props
rename to build/SetupPreviousStage.props
index 1432a048aa..4798cf582e 100644
--- a/build/Stage0.props
+++ b/build/SetupPreviousStage.props
@@ -1,16 +1,10 @@
- $(RepoRoot)/.dotnet_stage0/$(Architecture)
- $(Stage0Directory)/dotnet$(ExeExtension)
+ $(RepoRoot)/.dotnet_stage0/$(Architecture)
+ $(PreviousStageDirectory)/dotnet$(ExeExtension)
-
-
- $(PreviousStageDirectory)
- $(PreviousStageDotnet)
-
-
False
diff --git a/build/Test.targets b/build/Test.targets
index 9c31620aa5..388a2e1fe0 100644
--- a/build/Test.targets
+++ b/build/Test.targets
@@ -88,11 +88,11 @@
+ ToolPath="$(PreviousStageDirectory)" />
+ ToolPath="$(PreviousStageDirectory)" />
diff --git a/build/package/Installer.DEB.proj b/build/package/Installer.DEB.proj
index 66300c4dfa..d06be6a302 100644
--- a/build/package/Installer.DEB.proj
+++ b/build/package/Installer.DEB.proj
@@ -64,7 +64,7 @@
Mode="u+x" />
-
-
diff --git a/build/package/Installer.MSI.targets b/build/package/Installer.MSI.targets
index 2a4e131b84..8721c46738 100644
--- a/build/package/Installer.MSI.targets
+++ b/build/package/Installer.MSI.targets
@@ -199,7 +199,7 @@
+ -DotnetDir '$(PreviousStageDirectory)'" />
@@ -34,7 +34,7 @@
-
diff --git a/build/prepare/CheckPrereqs.targets b/build/prepare/CheckPrereqs.targets
index 1e7454410f..03d743c351 100644
--- a/build/prepare/CheckPrereqs.targets
+++ b/build/prepare/CheckPrereqs.targets
@@ -8,8 +8,8 @@
DependsOnTargets="CheckUbuntuAptGetDependencies;
CheckCentOsYumDependencies;">
-
-
+
+
-
@@ -81,7 +81,7 @@
-
@@ -159,7 +159,7 @@
SdkLayoutDirectory=$(SdkOutputDirectory)/Sdks/%(BundledSdk.Identity);
DependencyPackageName=%(BundledSdk.Identity);
DependencyPackageVersion=%(BundledSdk.Version);
- Stage0Directory=$(Stage0Directory)
+ PreviousStageDirectory=$(PreviousStageDirectory)
@@ -178,7 +178,7 @@
TemplateLayoutDirectory=$(SdkOutputDirectory)/Templates;
TemplatePackageName=%(BundledTemplate.Identity);
TemplatePackageVersion=%(BundledTemplate.Version);
- Stage0Directory=$(Stage0Directory)
+ PreviousStageDirectory=$(PreviousStageDirectory)