logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Smith (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4NET-541) Nuget defaulting to .net standard 1.3 dependencies when targeting 4.6 full framework
Date Fri, 30 Dec 2016 05:57:58 GMT

    [ https://issues.apache.org/jira/browse/LOG4NET-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15786975#comment-15786975
] 

Nathan Smith commented on LOG4NET-541:
--------------------------------------

Duplicate of LOG4NET-540 it got submitted while I was testing

> Nuget defaulting to .net standard 1.3 dependencies when targeting 4.6 full framework
> ------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-541
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-541
>             Project: Log4net
>          Issue Type: Bug
>          Components: Builds
>    Affects Versions: 2.0.6
>            Reporter: Nathan Smith
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Nuget is defaulting to .net standard 1.3 dependencies when targeting 4.6 full framework.
 This is only happening on .net 4.6 or greater because version 4.6.2 supports .net standard.
 The problem can be fixed by specifically declaring .net 4.5 as having no dependencies in
the nuspec file.  I was able to verify this quickly in a test setup by using NuGet Package
Explorer to edit the nuget package and defining net45 with no dependencies.
> Adding the following line to the nuspec file should fix the issue.
> <group targetFramework=".NETFramework4.5" />
> A similar example can be found in the Json.Net nuspec file though he explicitly defines
multiple older versions of the framework as having no dependencies.
> https://github.com/JamesNK/Newtonsoft.Json/blob/master/Build/Newtonsoft.Json.nuspec



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message