nuget - How best to support multiple versions of .net in the same library -


i creating .net library in visual studio 2015 following aims:-

  1. support .net 2, 3.5, 4 , 4.5+
  2. pcl support (.net 4.5+)
  3. 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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -