-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paket removes references which are under user control #1746
Comments
Argh. Please create a repro sample and temporarily downgrade to 2.x This is related to the fact that --hard is now the default. But it should
|
Ok. Took me a while to have a minimal repro to understand what happens. So, if you take the repro here , then first is fine when you do |
is a0d66a7 the change you meant? It's still keeping things green |
yes. Exactly that change makes it fail. |
according to the integration test it keeps it. can you please check again? |
you need to add the dependency microsoft.bcl.async v1.0.168 |
this is the one which references system.net for net40 |
ok. I can reproduce. It moves it down to it's own Choose nodes (which is expected). That said. If I change it to
I'd expect it to stay. Unfortunately Paket still thinks it can take over control. I consider this a bug |
The problem that I see in that case, that System.Net is only defined for net40. Do you think in this case it should take the control away? It takes a lot of knowledge and investigation to find this out. For general developers it's really hard. |
it's what the package specifies. |
I really see it as: we fix it according to the package specification. But
|
I understand this. At least the fix gives me a way to work with. I don't have a better solution for now. The only thing that I can think of, is also to define my other dependencies. BTW, thx for the immediate reaction. |
I tested it and it seems to work, but a |
yeah. there was another bug(?) in exactly the same line. If you add "private" then it thought it was not a framework reference. But your sample shows that this assumption was wrong |
anyways marking it with paket = false is a safe bet |
ok. thx. |
Description
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
The text was updated successfully, but these errors were encountered: