Paket removes references which are under user control
See original GitHub issueDescription
References which are under user control should not be removed by Paket. Paket removes always references and let our build fail
Repro steps
We have a silverlight class library project which we use for testing. We add e.g. System.Net to that library and want to use that in our code. When we add the nuget dependency Microsoft.Bcl.Async
then System.Net is removed because the for net40 this is specified as reference.
Expected behavior
We should be able to have control over that reference. But Paket always removes references. Also specifying <Paket>False</Paket>
does not help.
Actual behavior
We always lose the references after a paket run.
Known workarounds
none. Use paket 2 as this behaviour seems new in Paket 3.
Related information
N/A
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
PackageReference in project files - NuGet
Package references, using <PackageReference> MSBuild items, specify NuGet package ... into your project file, then remove packages.config.
Read more >FAQ — Frequently Asked Questions
Each project will have a paket.references file that specifies which of the dependencies are installed in the project. Each of these files should...
Read more >The paket.dependencies file
Paket usually adds all direct and transitive dependencies that are listed in paket.references files to project files next to the respective paket.references ......
Read more >Paket error: "Package was referenced, but it was not found ...
Option 1. The easiest way to fix this error is to delete the file paket.lock , and force Paket to regenerate this file...
Read more >Getting Started with Paket – Part 1 - The Cockney Coder
Firstly, it modifies csproj files so they're in sync with paket.references files (when you add or remove a dependency to a project).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it’s what the package specifies. Anyways. a fix is underway that allows you to add paket = false
ok. thx.