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

Suave 2.0 can't be included on a .net 4.6 project #559

Closed
baronfel opened this issue Jan 5, 2017 · 12 comments
Closed

Suave 2.0 can't be included on a .net 4.6 project #559

baronfel opened this issue Jan 5, 2017 · 12 comments

Comments

@baronfel
Copy link

baronfel commented Jan 5, 2017

Hi!

I have a project I'm using Suave on that targets .net 4.6 on mono 4.6.2, and when I add Suave 2.0 and build, I get the following build error:

"Q:\Experiments\pano-stitcher-dotnet\tests\pano.tests\pano.tests.fsproj" (Build target) (1) ->
      "Q:\Experiments\pano-stitcher-dotnet\src\pano\pano.fsproj" (default target) (2) ->
      (ResolveAssemblyReferences target) ->
        C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3274: The primary refe
      rence "Suave" could not be resolved because it was built against the ".NETFramework,Version=v4.6.1" framework. This is a hig
      her version than the currently targeted framework ".NETFramework,Version=v4.6". [Q:\Experiments\pano-stitcher-dotnet\src\pan
      o\pano.fsproj]

What I'm seeing is that a 4.6 project can include Suave, but the assembly cannot actually be referenced via msbuild until the project is retargeted to 4.6.1.

I was able to work around this by retargeting my project to 4.6.1, but I think it would be better to either rebuild suave to target 4.6, or don't let it be installed to projects targeting 4.6.

I am using paket to manage my dependencies, and the msbuild include syntax it generates seems fine and in line with all of my other dependencies.

@isaacabraham
Copy link
Contributor

Same here - I tried a net40 console app and a 452 console app - whilst NuGet pulls down the package (because the package is net40), nothing shows up because it's in reality 461 upwards.

Either the package should be changed to 461 explicitly, or the library should be downgraded back to 40.

@haf
Copy link
Contributor

haf commented Jan 10, 2017

Tracked by this issue

@ademar
Copy link
Member

ademar commented Jan 17, 2017

I have just published v2.0.1 targeting .NET 4.6; please give it a try. Thanks.

@forki
Copy link
Contributor

forki commented Jan 18, 2017

2.0.1 still doesn't work for NET 452 and below

@haf
Copy link
Contributor

haf commented Jan 18, 2017

@forki That is correct and intended.

@forki
Copy link
Contributor

forki commented Jan 18, 2017 via email

@haf
Copy link
Contributor

haf commented Jan 18, 2017

Albacore/albacore#148

@isaacabraham
Copy link
Contributor

@haf don't understand :-) can you explain for the simpletons like me.

@adamchester
Copy link
Contributor

adamchester commented Jan 18, 2017

@isaacabraham Suave is compiled for net46 now, but a bug in the build tools puts the dll in the wrong folder inside the nuget package. This bug confuses some end users and tools, but works ok if you are targeting >=net46

Edit: looks like the metadata in the nuget package is slightly wrong too

@chinwobble
Copy link

Looks like PR #566 allowed me to compile an app with suave with .NET Framework 4.6.

@adamchester is there anything we can do to fix the bug you mentioned or is it independent on fixing a bug in a upstream dependency?

@adamchester
Copy link
Contributor

@chinwobble yes it's part of albacore. hopefully somebody will help with Albacore/albacore#148

@haf
Copy link
Contributor

haf commented Jun 17, 2017

Albacore #148 has been resolved thanks to @danieljsummers

Releasing v2.1.1 now if dotnet core will let me :)

@haf haf closed this as completed in e8ec65c Jun 17, 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

7 participants