diff --git a/eng/common/tools.ps1 b/eng/common/tools.ps1
index 19e09f37f83..e5fae740084 100644
--- a/eng/common/tools.ps1
+++ b/eng/common/tools.ps1
@@ -659,6 +659,11 @@ function GetNuGetPackageCachePath() {
# global packages folder, this expression will evaluate to the empty string which will effectively leave the
# environment variable set to null.
$env:NUGET_PACKAGES = $nugetConfigXml.SelectSingleNode("//configuration/config/add[@key='globalPackagesFolder']").value
+ if ($env:NUGET_PACKAGES -ne $null) {
+ # Join-Path with an empty child path effectively adds a trailing directory separator only if one does not
+ # already exist
+ $env:NUGET_PACKAGES = Join-Path $env:NUGET_PACKAGES ''
+ }
}
if ($env:NUGET_PACKAGES -eq $null) {
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj
index 11bc975dd42..2f6e03b9b32 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj
@@ -134,19 +134,18 @@
- <_RestoreToolsProps Include="@(_CommonProps)"/>
- <_RestoreToolsProps Include="BaseIntermediateOutputPath=$(ArtifactsToolsetDir)Common"/>
- <_RestoreToolsProps Include="ExcludeRestorePackageImports=true"/>
- <_RestoreToolsProps Include="_NuGetRestoreTargets=$(_NuGetRestoreTargets)"/>
-
+ <_RestoreProps Include="@(_CommonProps)"/>
+ <_RestoreProps Include="ExcludeRestorePackageImports=true"/>
+ <_RestoreProps Include="_NuGetRestoreTargets=$(_NuGetRestoreTargets)"/>
+
- <_RestoreToolsProps Include="Publish=$(Publish)"/>
+ <_RestoreProps Include="Publish=$(Publish)"/>
- <_RestoreToolsProps Include="PublishToSymbolServer=$(PublishToSymbolServer)"/>
+ <_RestoreProps Include="PublishToSymbolServer=$(PublishToSymbolServer)"/>
- <_RestoreToolsProps Include="DotNetPublishUsingPipelines=$(DotNetPublishUsingPipelines)"/>
+ <_RestoreProps Include="DotNetPublishUsingPipelines=$(DotNetPublishUsingPipelines)"/>
- <_RestoreToolsProps Include="DotNetRuntimeSourceFeed=$(DotNetRuntimeSourceFeed)"/>
- <_RestoreToolsProps Include="DotNetRuntimeSourceFeedKey=$(DotNetRuntimeSourceFeedKey)"/>
+ <_RestoreProps Include="DotNetRuntimeSourceFeed=$(DotNetRuntimeSourceFeed)"/>
+ <_RestoreProps Include="DotNetRuntimeSourceFeedKey=$(DotNetRuntimeSourceFeedKey)"/>
+
+
+
+ <_RestoreToolsProps Include="@(_RestoreProps)"/>
+ <_RestoreToolsProps Include="BaseIntermediateOutputPath=$(ArtifactsToolsetDir)Common"/>
+
+ <_RestoreSignProps Include="@(_RestoreProps)"/>
+ <_RestoreSignProps Include="BaseIntermediateOutputPath=$(ArtifactsToolsetDir)CommonSign"/>
+
+ <_RestorePublishProps Include="@(_RestoreProps)"/>
+ <_RestorePublishProps Include="BaseIntermediateOutputPath=$(ArtifactsToolsetDir)CommonPublish"/>
@@ -185,6 +195,22 @@
Properties="@(_RestoreToolsProps);_NETCORE_ENGINEERING_TELEMETRY=Restore"
Condition="'$(Restore)' == 'true'"/>
+
+
+
+
+
+
+
+ net472
+
+ 5
+ .NETFramework
+ .NETFramework,Version=v4.7.2
+ $(BaseIntermediateOutputPath)
+
+
+
+
+ $(RepoRoot)NuGet.config
+ $(RepoRoot)NuGet.Config
+ $(RepoRoot)nuget.config
+
+
+
+
+
+
+
+ <_ImportOrUseTooling>false
+ <_ImportOrUseTooling Condition="('$(ArcadeInnerBuildFromSource)' != 'true' and '$(DotNetBuildFromSourceFlavor)' != 'Product') and
+ ('$(DotNetBuildSourceOnly)' != 'true' or ('$(DotNetBuildPhase)' == 'Repo' and '$(DotNetBuildOrchestrator)' != 'true'))">true
+
+
+
+
+
+
+
+
+ net472
+
+ 5
+ .NETFramework
+ .NETFramework,Version=v4.7.2
+ $(BaseIntermediateOutputPath)
+
+
+
+
+ $(RepoRoot)NuGet.config
+ $(RepoRoot)NuGet.Config
+ $(RepoRoot)nuget.config
+
+
+
+
+
+
+
+ <_ImportOrUseTooling>false
+ <_ImportOrUseTooling Condition="('$(ArcadeInnerBuildFromSource)' != 'true' and '$(DotNetBuildFromSourceFlavor)' != 'Product') and
+ ('$(DotNetBuildSourceOnly)' != 'true' or ('$(DotNetBuildPhase)' == 'Repo' and '$(DotNetBuildOrchestrator)' != 'true'))">true
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.VsixBuild.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.VsixBuild.targets
index 6b3368611fc..cf30c8b3395 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.VsixBuild.targets
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.VsixBuild.targets
@@ -284,7 +284,7 @@
-
+
$(CollectUpToDateCheckInputDesignTimeDependsOn);CollectVsixUpToDateCheckInput
$(CollectUpToDateCheckBuiltDesignTimeDependsOn);CollectVsixUpToDateCheckBuilt