PackageReleasePackages target cannot handle multiple versions in artifacts
- Dominant language
- C#
- Stars
- 729
- Forks
- 397
- Avg merge
- 3d 15m
- Merged PRs (30d)
- 149
Description
- [ ] This issue is blocking
- [x] This issue is causing unreasonable pain
The `PackageReleasePackages` target fails with
D:\.tools\.nuget\packages\microsoft.dotnet.arcade.sdk\11.0.0-beta.25509.1\tools\BuildReleasePackages.targets(21,5): Multiple packages of name 'Microsoft.CodeAnalysis' specified [D:\.tools\.nuget\packages\microsoft.dotnet.arcade.sdk\11.0.0-beta.25509.1\tools\AfterSolutionBuild.proj]
often when packing Roslyn locally. I have investigated and the problem is that I have accumulated several versions of packages and the target can't handle that:
That seems like a bug to me - or do I really need to remove all artifacts before running `build.cmd -pack` locally?
Contributor guide
Research direction
Start with tools/BuildReleasePackages.targets at line 21 and the referenced AfterSolutionBuild.proj, then reproduce the failure with accumulated package versions using build.cmd -pack. Confirm that PackageReleasePackages fails on multiple versions of the same package and define completion as handling those artifacts without the reported duplicate-package error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100