"Must use PackageReference"
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 2.1k
- Forks
- 528
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 54
Description
I'm trying to reference Azure.Identity with Paket (paket.dependencies):
nuget Azure.Identity
But it has dependencies (paket.lock):
Azure.Identity (1.3)
Azure.Core (>= 1.6) - restriction: && (>= net40) (>= netstandard2.0)
Microsoft.Identity.Client (>= 4.22) - restriction: && (>= net40) (>= netstandard2.0)
...
Microsoft.Identity.Client (4.24) - restriction: || (&& (>= net40) (>= netstandard2.0)) (&& (>= net45) (>= netstandard2.0))
Microsoft.Windows.SDK.Contracts (>= 10.0.17763.1000) - restriction: >= net461
...
This all works well when referencing packages, but then when I try to build the project, it fails with an error:
A:\MyProject\packages\Microsoft.Windows.SDK.Contracts\build\Microsoft.Windows.SDK.Contracts.targets(4,5):
error : Must use PackageReference
Possible workaround is to put the code to a separate dll not using Paket but dotnet, and then reference that dll from the main project.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with paket.dependencies and paket.lock, then inspect the referenced Microsoft.Windows.SDK.Contracts build target at packages/Microsoft.Windows.SDK.Contracts/build/Microsoft.Windows.SDK.Contracts.targets. Reproduce the build using Azure.Identity and Paket, and determine the supported dependency behavior. Done means the project builds without moving this dependency to a separate dotnet-managed DLL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- build-system, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100