[ArPow] Temporary fix for reference packages with broken extension methods (#11092)
* Add some needed prebuilt packages to override temporarily bad ref packages. * Remove bad ref packages. * Also don't copy new versions of the bad SBRP packages after the SBRP build. * Account for missing intermediate packages and different paths. * Address code review comment.
This commit is contained in:
parent
5048e0f143
commit
91afacfc09
7 changed files with 19 additions and 3 deletions
|
@ -203,8 +203,6 @@
|
|||
File="$(ArchiveArtifactsTextFile)"
|
||||
Lines="@(ArtifactUrls)"
|
||||
Overwrite="true" />
|
||||
|
||||
<MakeDir Directories="$(TarballRootDir)packages/prebuilt" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -482,8 +482,14 @@
|
|||
DestinationDirectory="$(SourceBuiltPackagesPath)extractArtifacts/"
|
||||
OverwriteDestination="true" />
|
||||
|
||||
<ItemGroup>
|
||||
<ItemGroup Condition="'@(_BuiltIntermediatePackages)' != ''">
|
||||
<SourceBuiltNupkgFiles Include="$(SourceBuiltPackagesPath)extractArtifacts/**/*.nupkg" />
|
||||
<!-- don't copy some packages that we specifically want to override for now due to bad reference package generation -->
|
||||
<!-- relevant issues: https://github.com/dotnet/runtime/issues/44646, https://github.com/dotnet/runtime/issues/45183, https://github.com/dotnet/runtime/issues/45417 -->
|
||||
<!-- these should be fixed for 6.0 proper -->
|
||||
<PrebuiltPackagesToUse Include="$(PrebuiltPackagesPath)/*.nupkg" />
|
||||
<SourceBuiltNupkgFilesToSkip Include="@(PrebuiltPackagesToUse -> '$(SourceBuiltPackagesPath)extractArtifacts/artifacts/%(Filename)%(Extension)')" />
|
||||
<SourceBuiltNupkgFiles Condition="$([System.String]::Copy(%(_BuiltIntermediatePackages.Identity)).Contains('source-build-reference-packages'))" Remove="@(SourceBuiltNupkgFilesToSkip)" />
|
||||
</ItemGroup>
|
||||
|
||||
<Copy
|
||||
|
|
|
@ -54,6 +54,18 @@
|
|||
|
||||
<Move SourceFiles="@(UnpackedSourceBuildReferencePackages)" DestinationFiles="$(ReferencePackagesDir)%(Filename)%(Extension)" />
|
||||
|
||||
<!-- remove some reference packages that are generated incorrectly and instead use the prebuilt checked-in version instead -->
|
||||
<!-- relevant issues: https://github.com/dotnet/runtime/issues/44646, https://github.com/dotnet/runtime/issues/45183,
|
||||
https://github.com/dotnet/runtime/issues/45417. this should be fixed for the 6.0 release. -->
|
||||
<ItemGroup>
|
||||
<PrebuiltPackagesToUse Include="$(PrebuiltPackagesPath)/*.nupkg" />
|
||||
<ReferencePackagesToOverride Include="@(PrebuiltPackagesToUse -> '$(ReferencePackagesDir)/%(Filename)%(Extension)')" />
|
||||
</ItemGroup>
|
||||
|
||||
<Message Text="Overriding @(ReferencePackagesToOverride) with @(PrebuiltPackagesToUse)" Importance="High" />
|
||||
|
||||
<Delete Files="@(ReferencePackagesToOverride)" />
|
||||
|
||||
<!-- Setup the PackageVersions.props file to be a combination of SourceBuilt and GennedPackages -->
|
||||
<Copy SourceFiles="$(PrebuiltSourceBuiltPackagesPath)PackageVersions.props" DestinationFiles="$(IntermediatePath)SourceBuiltPackageVersions.props" />
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue