I created a library that uses: generics, extension methods, and the Func delegate. Func Delegate is the newest .NET feature (version 3.5) in the library. When I published it on nuget, the project was targeting .NET 4.5.2, but when I tried to install it on a project with the target version 4.5, it failed.
How to make sure that the package will be installed in any project that is designed for .NET 3.5 and later, whether the target structure in the library should be changed to 3.5 or should I use the directory agreement and create a separate dll for each structure, explained here:
Support for multiple versions of the .NET Framework
source share