jason-roberts / FeatureToggle

Simple, reliable feature toggles in .NET
http://dontcodetired.com/blog/?tag=/featuretoggle
Apache License 2.0
687 stars 111 forks source link

installation via nuget fails in a .NET 4.0 project #62

Closed bartcallewaert closed 10 years ago

bartcallewaert commented 10 years ago

Hi,

I get an error when I Try to install FeatureToggle in a .NET 4.0 project. Can this package only be installed in a .NET 4.5 project?

error message:

Attempting to resolve dependency 'FeatureToggle.Core (≥ 2.2.0)'. Installing 'FeatureToggle.Core 2.2.0'. Successfully installed 'FeatureToggle.Core 2.2.0'. Installing 'FeatureToggle 2.2.0'. Successfully installed 'FeatureToggle 2.2.0'. Adding 'FeatureToggle.Core 2.2.0' to .... Uninstalling 'FeatureToggle.Core 2.2.0'. Successfully uninstalled 'FeatureToggle.Core 2.2.0'. Install failed. Rolling back... Could not install package 'FeatureToggle.Core 2.2.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

jason-roberts commented 10 years ago

Hi, currently support is provided for 4.5.1 - I'm looking in a future release to see what a "downgrade" to 4 will be like to allow wider support: https://github.com/jason-roberts/FeatureToggle/issues/33 feel free to comment on that issue - the more people want it the more I will prioritize it :)

Cheers Jason

jason-roberts commented 10 years ago

Look like I can sort .Net 4 support before v3. The PCL FeatureToggle.Core was targeting net45 when it only needs to be .net40.

Need to pub new core NuGet

jason-roberts commented 10 years ago

@lankarden hi, just released 2.2.1 - this should allow .Net 4 installation. Sorry for the confusion.