Nathan Smith created LOG4NET-541:
------------------------------------

             Summary: 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


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)

Reply via email to