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

Package with lib/net35-client and lib/portable-net4 sl5 netcore45 wpa81 wp8 installs wrong version for project targeting 4.5 #559

Closed
agross opened this issue Jan 19, 2015 · 1 comment

Comments

@agross
Copy link
Contributor

agross commented Jan 19, 2015

(The package is PostSharp 4.0.39)

NuGet installs lib/net35-client to a 4.5 class library, whereas paket installs lib/portable-net4 sl5 netcore45 wpa81 wp8. When you try to load the PostSharp-processed assembly it will cause exceptions when instantiating types:

System.TypeInitializationException: The type initializer for 'PostSharp.ImplementationDetails_688d9669.<>z__a_4' threw an exception. ---> System.TypeInitializationException: The type initializer for 'PostSharp.ImplementationDetails_688d9669.<>z__a_14' threw an exception. ---> System.TypeLoadException: Could not load type 'PostSharp.Aspects.Serialization.BinaryAspectSerializer' from assembly 'PostSharp, Version=4.0.39.0, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7'.

This is because BinaryAspectSerializer is only defined in the lib/net35-client assembly.

@agross
Copy link
Contributor Author

agross commented Jan 19, 2015

Seems like paket doesn't even add a <When Condition=""/> for net35-client.

@forki forki closed this as completed in 0734b42 Jan 20, 2015
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

1 participant