@@ -35,8 +35,6 @@ This package is an internal implementation of the .NET Core SDK and is not meant
35
35
<!-- This project should not be referenced via the `<Reference>` implementation. -->
36
36
<IsProjectReferenceProvider >false</IsProjectReferenceProvider >
37
37
38
- <PackageConflictManifestFileName >PackageOverrides.txt</PackageConflictManifestFileName >
39
-
40
38
<!--
41
39
We are ignoring MSB3243 warnings since implementation and reference assemblies are versioned differently.
42
40
We need both to compose the targeting pack with reference assemblies and xml docs.
@@ -52,7 +50,12 @@ This package is an internal implementation of the .NET Core SDK and is not meant
52
50
<!-- Runtime extensions transport paths -->
53
51
<RuntimeExtensionsReferenceDirectory >$(PkgMicrosoft_Extensions_Internal_Transport)\ref\$(TargetFramework)\</RuntimeExtensionsReferenceDirectory >
54
52
55
- <!-- Platform manifest override metadata. -->
53
+ <!-- Package overrides and platform manifest metadata. -->
54
+ <PackageOverridesFileName >PackageOverrides.txt</PackageOverridesFileName >
55
+ <!-- PackageOverrides.txt is written in GeneratePackageOverrides target unless servicing. -->
56
+ <ReferencePackageOverridesPath Condition =" '$(IsServicingBuild)' != 'true'" >$(TargetDir)$(PackageOverridesFileName)</ReferencePackageOverridesPath >
57
+ <ReferencePackageOverridesPath Condition =" '$(IsServicingBuild)' == 'true'" >$(RepoRoot)eng\$(PackageOverridesFileName)</ReferencePackageOverridesPath >
58
+ <!-- PlatformManifest.txt is written in App.Runtime's GenerateSharedFxDepsFile target but not used here when servicing. -->
56
59
<ReferencePlatformManifestPath Condition =" '$(IsServicingBuild)' != 'true'" >$(PlatformManifestOutputPath)</ReferencePlatformManifestPath >
57
60
<ReferencePlatformManifestPath Condition =" '$(IsServicingBuild)' == 'true'" >$(RepoRoot)eng\PlatformManifest.txt</ReferencePlatformManifestPath >
58
61
</PropertyGroup >
@@ -84,7 +87,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
84
87
<BuildDependsOn Condition =" '$(IsTargetingPackBuilding)' != 'false'" >
85
88
$(BuildDependsOn);
86
89
_ResolveTargetingPackContent;
87
- GeneratePackageConflictManifest ;
90
+ GeneratePackageOverrides ;
88
91
IncludeFrameworkListFile;
89
92
_BatchCopyToLayoutTargetDir;
90
93
_InstallTargetingPackIntoLocalDotNet;
@@ -144,26 +147,22 @@ This package is an internal implementation of the .NET Core SDK and is not meant
144
147
Condition =" Exists('%(RootDir)%(Directory)%(FileName).xml')" />
145
148
<AspNetCoreReferenceDocXml Include =" @(_SelectedExtensionsRefAssemblies->'$(RuntimeExtensionsReferenceDirectory)%(FileName).xml')" />
146
149
<!-- Grab remaining .xml files from packages -->
147
- <AspNetCoreReferenceDocXml
148
- Include =" @(AspNetCoreReferenceAssemblyPath->WithMetadataValue('ExternallyResolved', 'true')->'%(RootDir)%(Directory)%(Filename).xml')"
150
+ <AspNetCoreReferenceDocXml
151
+ Include =" @(AspNetCoreReferenceAssemblyPath->WithMetadataValue('ExternallyResolved', 'true')->'%(RootDir)%(Directory)%(Filename).xml')"
149
152
Condition =" Exists('%(RootDir)%(Directory)%(Filename).xml')" />
150
153
151
154
<RefPackContent Include =" @(AspNetCoreReferenceAssemblyPath)" PackagePath =" $(RefAssemblyPackagePath)" />
152
155
<RefPackContent Include =" @(AspNetCoreReferenceDocXml)" PackagePath =" $(RefAssemblyPackagePath)" />
153
- <RefPackContent Include =" $(TargetDir)$(PackageConflictManifestFileName )" PackagePath =" $(ManifestsPackagePath)" />
156
+ <RefPackContent Include =" $(ReferencePackageOverridesPath )" PackagePath =" $(ManifestsPackagePath)" />
154
157
<RefPackContent Include =" $(ReferencePlatformManifestPath)" PackagePath =" $(ManifestsPackagePath)" />
155
158
</ItemGroup >
156
159
</Target >
157
160
158
- <Target Name =" GeneratePackageConflictManifest"
161
+ <Target Name =" GeneratePackageOverrides"
162
+ Condition =" '$(IsServicingBuild)' != 'true' "
159
163
DependsOnTargets =" _ResolveTargetingPackContent"
160
164
Inputs =" $(MSBuildAllProjects)"
161
- Outputs =" $(TargetDir)$(PackageConflictManifestFileName)" >
162
- <PropertyGroup >
163
- <_PinnedNETCoreAppRuntimeVersion >$(MicrosoftNETCoreAppRuntimeVersion)</_PinnedNETCoreAppRuntimeVersion >
164
- <_PinnedNETCoreAppRuntimeVersion
165
- Condition =" '$(IsServicingBuild)' == 'true' " >$(_PinnedNETCoreAppRuntimeVersion.Split('.')[0]).$(_PinnedNETCoreAppRuntimeVersion.Split('.')[1]).0</_PinnedNETCoreAppRuntimeVersion >
166
- </PropertyGroup >
165
+ Outputs =" $(ReferencePackageOverridesPath" >
167
166
<ItemGroup >
168
167
<!-- Use package version for non-Extensions references. -->
169
168
<_AspNetCoreAppPackageOverrides Include =" @(AspNetCoreReferenceAssemblyPath->'%(NuGetPackageId)|%(NuGetPackageVersion)')"
@@ -172,16 +171,16 @@ This package is an internal implementation of the .NET Core SDK and is not meant
172
171
'%(AspNetCoreReferenceAssemblyPath.NuGetPackageId)' != 'Microsoft.Extensions.Internal.Transport' AND
173
172
'%(AspNetCoreReferenceAssemblyPath.NuGetSourceType)' == 'Package' " />
174
173
175
- <!-- Use pinned NETCore.App version for Extensions references. -->
176
- <_AspNetCoreAppPackageOverrides Include =" @(_SelectedExtensionsRefAssemblies->'%(FileName)|$(_PinnedNETCoreAppRuntimeVersion )')" />
174
+ <!-- Use NETCore.App.Runtime version for Extensions references. -->
175
+ <_AspNetCoreAppPackageOverrides Include =" @(_SelectedExtensionsRefAssemblies->'%(FileName)|$(MicrosoftNETCoreAppRuntimeVersion )')" />
177
176
178
177
<_AspNetCoreAppPackageOverrides Include =" @(AspNetCoreReferenceAssemblyPath->'%(FileName)|$(ReferencePackSharedFxVersion)')"
179
178
Condition =" '%(AspNetCoreReferenceAssemblyPath.ReferenceSourceTarget)' == 'ProjectReference' " />
180
179
</ItemGroup >
181
180
182
181
<WriteLinesToFile
183
182
Lines =" @(_AspNetCoreAppPackageOverrides)"
184
- File =" $(TargetDir)$(PackageConflictManifestFileName )"
183
+ File =" $(ReferencePackageOverridesPath )"
185
184
Overwrite =" true" />
186
185
</Target >
187
186
0 commit comments