You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
0.20.1 inserts wrong framework version condition into project files #486
<Choose>
- <WhenCondition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v2.0'">
+ <WhenCondition="($(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>
<ReferenceInclude="LinqBridge">
<HintPath>..\..\packages\LinqBridge\lib\net20\LinqBridge.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose>
As a result LinqBridge is actually referenced and conflicting with System.Linq:
error CS0433: The type 'System.Linq.Enumerable' exists in both '...\packages\LinqBridge\lib\net20\LinqBridge.dll' and 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll'
Activity
forki commentedon Dec 30, 2014
So LinqBridge is tagged as:
LinqBridge (1.3.0) - >= net20 < net35
but it's still installed for .NET 4.x?
vasily-kirichenko commentedon Dec 30, 2014
Yes, all the packages are on nuget.org.
Yes, this is the problem.
forki commentedon Dec 30, 2014
I tried with:
and it gives me:
Maybe something else is making trouble.
vasily-kirichenko commentedon Dec 30, 2014
Add
Fizzlerpackage into the mix.forki commentedon Dec 30, 2014
Will try. But probably tomorrow.
On Dec 30, 2014 3:12 PM, "Vasily Kirichenko" [email protected]
wrote:
vasily-kirichenko commentedon Dec 30, 2014
Thanks!
I've create a minimal repro: https://github.com/vasily-kirichenko/PacketTest
vasily-kirichenko commentedon Dec 30, 2014
I minimized it even more :)
forki commentedon Dec 30, 2014
I just run
paket update:that's weird. Everything looks good.
forki commentedon Dec 30, 2014
ok
paket installgives a different result. I can reproduce.forki commentedon Dec 30, 2014
I think I understand the issue - will try to fix tomorrow. Thanks for reporting.
vasily-kirichenko commentedon Dec 30, 2014
Yes, I've got the same result at home machine :( Will retest on the machine at work in a minute.
vasily-kirichenko commentedon Dec 30, 2014
I've caught it :) Pull the changes from my repo - I removed everything from
paket.references, so the project file is clean. Now addinto it, then run
paket installand the bug will appear (LinqBridge.dllwill be referenced).vasily-kirichenko commentedon Dec 30, 2014
Thanks!
forki commentedon Dec 30, 2014
Yep. It's a bug in "install" - "paket update" seems ok.
"install" has to parse/keep the dependency restrictions.
"update" is not affected since it computes everything from scratch.
forki commentedon Dec 31, 2014
Please retry.
vasily-kirichenko commentedon Dec 31, 2014
0.20.3, paket install
forki commentedon Dec 31, 2014
(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.
forki commentedon Dec 31, 2014
Ok I tried with your latest repro:
Please run
paket updateonce. This will fix the broken lockfile (broken due to bug in earlier paket install)Subsequent runs of
paket installwill respect the targetframework restrictions.vasily-kirichenko commentedon Dec 31, 2014
paket.lockpaket.referencespaket installpaket.referencesbackpaket installvasily-kirichenko commentedon Dec 31, 2014
I think it should check if project file contains correct
when Conditions and modifies them if needed.forki commentedon Dec 31, 2014
^^ that's basically what
paket updatedoes.vasily-kirichenko commentedon Dec 31, 2014
OK :) Thanks.
forki commentedon Dec 31, 2014
that's what we do. The issue was, that the lockfile didn't containt the framework restrictions.