-
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
0.20.1 inserts wrong framework version condition into project files #486
Comments
So LinqBridge is tagged as: LinqBridge (1.3.0) - >= net20 < net35 but it's still installed for .NET 4.x? |
Yes, all the packages are on nuget.org.
Yes, this is the problem. |
I tried with:
and it gives me:
Maybe something else is making trouble. |
Add |
Will try. But probably tomorrow.
|
Thanks! I've create a minimal repro: https://github.com/vasily-kirichenko/PacketTest |
I minimized it even more :) |
ok |
I think I understand the issue - will try to fix tomorrow. Thanks for reporting. |
Yes, I've got the same result at home machine :( Will retest on the machine at work in a minute. |
I've caught it :) Pull the changes from my repo - I removed everything from
into it, then run |
Thanks! |
Yep. It's a bug in "install" - "paket update" seems ok. "install" has to parse/keep the dependency restrictions. |
Please retry. |
0.20.3, paket install <Choose>
<When Condition="($(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v2.0' Or $(TargetFrameworkVersion) == 'v3.0' Or $(TargetFrameworkVersion) == 'v3.5' Or $(TargetFrameworkVersion) == 'v4.0' Or $(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3')) Or ($(TargetFrameworkIdentifier) == 'MonoAndroid') Or ($(TargetFrameworkIdentifier) == 'MonoTouch')">
<ItemGroup>
<Reference Include="LinqBridge">
<HintPath>packages\LinqBridge\lib\net20\LinqBridge.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose>
</Project> |
(did you run update before? the new install assumes the lockfile is in "correct" state and shouldn't break it. But it doesn't fix broken lockfiles) will try to run with your latest repro. Did my test on the thingy from yesterday. |
Ok I tried with your latest repro: Please run Subsequent runs of |
|
I think it should check if project file contains correct |
^^ that's basically what |
OK :) Thanks. |
that's what we do. The issue was, that the lockfile didn't containt the framework restrictions. |
I updated Paket to version 0.20.1 (was 0.18), then run paket update.
paket.lock
(part of)its changes:
A .NET 4.5 C# project with the following
paket.references
has been amended as following
As a result
LinqBridge
is actually referenced and conflicting withSystem.Linq
:The text was updated successfully, but these errors were encountered: