nuget - How best to support multiple versions of .net in the same library -
i creating .net library in visual studio 2015 following aims:-
- support .net 2, 3.5, 4 , 4.5+
- pcl support (.net 4.5+)
- no dependencies apart json.net
ideally .net 4.5+ version of library make use of async, , include methods return task etc
now there seems many different ways of supporting want do, visual studio 2015/project.json release approach starting scratch today?
my library relatively simple, as want re-use code don't want compromise .net 4.5 version.
what sensible project structure, mean take advantage of latest .net framework, still build in support older frameworks.
with beta8 of webdev tooling able target net2, net35, net40, net45, ...
your library differences might use #ifdef flags in code hide methods in builds.
Comments
Post a Comment