You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Roman (JIRA)" <ji...@apache.org> on 2018/06/22 11:37:00 UTC

[jira] [Created] (LOG4NET-600) dotnet publish fails with error NU1605

Roman created LOG4NET-600:
-----------------------------

             Summary: dotnet publish fails with error NU1605
                 Key: LOG4NET-600
                 URL: https://issues.apache.org/jira/browse/LOG4NET-600
             Project: Log4net
          Issue Type: Bug
            Reporter: Roman
         Attachments: log, test.sh

Environment


$ dotnet --info
.NET Core SDK (reflecting any global.json):
 Version: 2.1.300
 Commit: adab45bf0c

Runtime Environment:
 OS Name: Windows
 OS Version: 10.0.16299
 OS Platform: Windows
 RID: win10-x64
 Base Path: C:\Program Files\dotnet\sdk\2.1.300\

Host (useful for support):
 Version: 2.1.0
 Commit: caa7b7e2ba

.NET Core SDKs installed:
 2.1.201 [C:\Program Files\dotnet\sdk]
 2.1.300 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
 Microsoft.AspNetCore.All 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
 Microsoft.AspNetCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
 Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
 Microsoft.NETCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
 https://aka.ms/dotnet-download

 

Steps to reproduce

#create netcoreapp2.1
rm test -rf
rm lib -rf
mkdir test
cd test
dotnet new console
#create lib
cd ..
mkdir lib
cd lib
dotnet new classlib
dotnet add package log4net
#add reference to test project
cd ../test/
dotnet add reference ../lib/
#publish
dotnet publish --configuration Release --runtime win-x64
#package downgrade error see attachment

 

I think it discussed here https://github.com/dotnet/core/issues/907.
It seems that problem may be fixed by removing duplicate dependencies that already referenced by sub-packages. For example log4net reference System.Runtime.InteropServices but it already referenced by 
System.Console so it unneeded.

 
h3.  
h1. System.Console

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)