Skip to content
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

Assembly version issue #5

Closed
vstastny opened this issue Apr 5, 2014 · 4 comments
Closed

Assembly version issue #5

vstastny opened this issue Apr 5, 2014 · 4 comments

Comments

@vstastny
Copy link
Contributor

vstastny commented Apr 5, 2014

HI, after having downloaded FSharpPlus NuGet package of version 0.0.3
with dependency to FsControl (>= 1.0.8), using

let _11_r9 = (+) <!> (Some 3) <*> (Some 5)

in my project is without any problem.

This, however (using ZipList)

let _11_r15 = (+) <!> (ZipList <| seq { 1..3 } ) <*> (ZipList <| Seq.init 3 (fun _ -> 100))

gets compiled with the following message

No way to resolve conflict between "FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
Consider app.config remapping of assembly "FSharp.Core, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.3.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v4.0\FSharp.Core.dll] to Version "4.3.1.0" [] to solve conflict and get rid of warning.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly.

When run, the program crashes with the following

{"Could not load file or assembly 'FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.":"FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"}

This issue can be somehow solved by adding this line into App.config

<bindingRedirect oldVersion="4.3.1.0" newVersion="4.3.0.0"/>

Cheers
Vladimir

@gusty
Copy link
Member

gusty commented Apr 5, 2014

Thanks Vladimir.

Would removing the line:

<TargetFSharpCoreVersion>4.3.1.0</TargetFSharpCoreVersion></code>

solve the issue as well?

PS: Feel free to contribute with a Pull Request.

@vstastny
Copy link
Contributor Author

vstastny commented Apr 5, 2014

Thank you for your comment.

I have downloaded the project FSharpPlus and manually included the assembly into the references of my new project. Everything worked well without the heck I mentioned above and without the need to change the TargetFSharpCoreVersion in FSharpPlus.fsproj.

When I created another project and included assemblies through the nuget package manager, at the end it resulted in a conflict between different versions of the same dependent assembly when running the program.

@gusty
Copy link
Member

gusty commented Apr 6, 2014

OK, let's fix it for next release of F#+.

@gusty
Copy link
Member

gusty commented Dec 23, 2017

This issue is old.
Now FsControl is merged here and FSharp.Core is referenced by a nuget so I will close it.
If there's still an issue with the assembly version I'm happy to reopen.

@gusty gusty closed this as completed Dec 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants