How could we at compile time know if TPL is available at runtime through third party libraries? We would have to ship yet another slightly differently compiled library for .net 3.5 and I dont like that fact. Other opinions welcome. On 25 Oct 2015 7:45 a.m., "NN (JIRA)" <j...@apache.org> wrote:
> > [ > https://issues.apache.org/jira/browse/LOG4NET-478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > ] > > NN updated LOG4NET-478: > ----------------------- > Attachment: LOG4NET-478.patch > > Better feature check > > > TPL for .NET 3.5 > > ---------------- > > > > Key: LOG4NET-478 > > URL: https://issues.apache.org/jira/browse/LOG4NET-478 > > Project: Log4net > > Issue Type: Improvement > > Components: Appenders > > Affects Versions: 1.3.0 > > Reporter: NN > > Labels: easyfix, features, patch > > Attachments: LOG4NET-478.patch > > > > Original Estimate: 1h > > Remaining Estimate: 1h > > > > AsyncAppender has the following code: > > #if FRAMEWORK_4_0_OR_ABOVE > > logTask = new Task(() => { }); > > logTask.Start(); > > #endif > > Instead of checking framework version it is better to check another > macro like HAS_TPL. > > There is a TPL support for .NET 3.5 through unofficial System.Threading > ( https://www.nuget.org/packages/System.Threading.dll/ ) > > > > -- > This message was sent by Atlassian JIRA > (v6.3.4#6332) >