mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Consider use of branches for different NET-runtime versions #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @norvegec on GitHub (Mar 16, 2015).
My goal is to have
NET3.5-targeted project with tests.Afaik, Microsoft unit test projects require
NET3.5or newer.SharpCompress.NET2is easily upgradeable to 3.5 (just removeLinqBridgeand target 3.5).The problems with different runtime versions had arosed, when I cloned the
SharpCompress.Testto targetNET3.5. Some of those problems are, for example: optional parameters, absence of someIO.Directorymethods,IEnumerable<T>is not covariant.So, can we replace preprocessor-directives style of code with project-by-framework style?
We can use different branches to simplify support. What do you think?
As a side note, do we really need to support NET2 version?
Windows 7and newer (client) andWindows 2008 R2 SP1(server) are shipped withNET 3.5.@adamhathcock commented on GitHub (Mar 16, 2015):
Branches could work. First, I'd want to reduce the supported frameworks.
Ideally, I was going to drop support for anything not portable or pre-4.0. (or maybe pre-4.5 because of async/await, not that it is used). I just literally have not had the time to work on this for years now.
Why support 3.5?
@norvegec commented on GitHub (Mar 16, 2015):
I am planning to use it as part of
SharePoint 2010solution.@adamhathcock commented on GitHub (Jan 9, 2016):
I'm going to use xproj for this when NET Core and ASP.NET get released