c# - Should i include in NuGet package dlls for multiple target framworks -


let's consider library project should run on 3 .net runtimes: net20, net35 , net46. source code remains same versions.

when releasing should build project 3 times different targetframeworkversion property values in order generate 3 dlls, 1 each .net version, , include 3 in nupkg file in lib/<target framework>/ directories? or fine include .net 2.0 dll , work fine on newer runtimes.

if use code compiles on 2.0 version, there no need include other framework versions.


Comments