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

Requires assembly in each project #167

Open aguzma opened 5 years ago

aguzma commented 5 years ago

Added FeatureToggle using nuget to a Common project. Then in Common project I created a feature class "SomeFeature: SimpleFeatureToggle" inherting SimpleFeatureToggle. I then tried to use the SomeFeature class in another project (of the same solution) which has Common project referenced. The other project cannot use the FeatureEnabled property, giving the following error:

The type 'SimpleFeatureToggle' is defined in an assembly that is not referenced. You must add a reference to assembly 'FeatureToggle, Version=4.0.2.0, Culture=neutral, PublicKeyToken=null'.

I think this might be due to target framework differences since this project is kind of old. Requesting an update.

I am using Visual Studio 2017, targeting .NET Framework 4.7.1