From 56878f6d504b340d63e1eac8223a1617186cb2ec Mon Sep 17 00:00:00 2001
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Thu, 24 Sep 2020 18:11:07 -0700
Subject: [PATCH 1/2] Support override of PackageOverrides.txt content in
servicing - doing now ensures we don't forget if we need to service targeting
packs - not needed in release/3.1 because that branch still pins packages at
`X.Y.0` in targeting packs - did not do bfc1ec6792 / #25851 work in 3.1
because dotnet/runtime ref/ assemblies change there - revert
no-longer-necessary parts of 6418c8f78a93 / #25986 -
`$(MicrosoftNETCoreAppRuntimeVersion)` is now correct whenever
`GeneratePackageOverrides` runs
---
.../src/Microsoft.AspNetCore.App.Ref.csproj | 31 +++++++++----------
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj
index 478becd01e40..2b7499d5f714 100644
--- a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj
+++ b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj
@@ -35,8 +35,6 @@ This package is an internal implementation of the .NET Core SDK and is not meant
false
- PackageOverrides.txt
-
$(PkgMicrosoft_Extensions_Internal_Transport)\ref\$(TargetFramework)\
-
+
+ PackageOverrides.txt
+
+ $(TargetDir)$(PackageOverridesFileName)
+ $(RepoRoot)eng\$(PackageOverridesFileName)
+
$(PlatformManifestOutputPath)
$(RepoRoot)eng\PlatformManifest.txt
@@ -144,26 +147,22 @@ This package is an internal implementation of the .NET Core SDK and is not meant
Condition="Exists('%(RootDir)%(Directory)%(FileName).xml')" />
-
-
+
-
-
- <_PinnedNETCoreAppRuntimeVersion>$(MicrosoftNETCoreAppRuntimeVersion)
- <_PinnedNETCoreAppRuntimeVersion
- Condition=" '$(IsServicingBuild)' == 'true' ">$(_PinnedNETCoreAppRuntimeVersion.Split('.')[0]).$(_PinnedNETCoreAppRuntimeVersion.Split('.')[1]).0
-
+ Outputs="$(ReferencePackageOverridesPath">
<_AspNetCoreAppPackageOverrides Include="@(AspNetCoreReferenceAssemblyPath->'%(NuGetPackageId)|%(NuGetPackageVersion)')"
@@ -172,8 +171,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant
'%(AspNetCoreReferenceAssemblyPath.NuGetPackageId)' != 'Microsoft.Extensions.Internal.Transport' AND
'%(AspNetCoreReferenceAssemblyPath.NuGetSourceType)' == 'Package' " />
-
- <_AspNetCoreAppPackageOverrides Include="@(_SelectedExtensionsRefAssemblies->'%(FileName)|$(_PinnedNETCoreAppRuntimeVersion)')" />
+
+ <_AspNetCoreAppPackageOverrides Include="@(_SelectedExtensionsRefAssemblies->'%(FileName)|$(MicrosoftNETCoreAppRuntimeVersion)')" />
<_AspNetCoreAppPackageOverrides Include="@(AspNetCoreReferenceAssemblyPath->'%(FileName)|$(ReferencePackSharedFxVersion)')"
Condition=" '%(AspNetCoreReferenceAssemblyPath.ReferenceSourceTarget)' == 'ProjectReference' " />
@@ -181,7 +180,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
From cd595063f93d8f0749d987b8075eeb72e990c5b3 Mon Sep 17 00:00:00 2001
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Thu, 24 Sep 2020 18:54:36 -0700
Subject: [PATCH 2/2] !fixup! Correct renamed target one other place
---
src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj
index 2b7499d5f714..ec0a772d018b 100644
--- a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj
+++ b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj
@@ -87,7 +87,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
$(BuildDependsOn);
_ResolveTargetingPackContent;
- GeneratePackageConflictManifest;
+ GeneratePackageOverrides;
IncludeFrameworkListFile;
_BatchCopyToLayoutTargetDir;
_InstallTargetingPackIntoLocalDotNet;