Page 1 of 1

Warning MSB3277 for .NET Standard 2 library

Posted: Sat 09 Sep 2017 01:23
by WallaceKelly
If you do the following:

Code: Select all

dotnet new library
dotnet add package Devart.Data.Oracle
dotnet build
You get this warning:
warning MSB3277: Found conflicts between different versions
of the same dependent assembly that could not be resolved.
The detailed build log states the following:
Unified Dependency "Microsoft.Win32.Registry, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Using this version instead of original version "4.0.0.0" in ".nuget\packages\devart.data\5.0.1772\lib\netstandard1.3\Devart.Data.dll" because AutoUnify is 'true'.
Using this version instead of original version "4.0.0.0" in ".nuget\packages\devart.data.oracle\9.4.348\lib\netstandard1.3\Devart.Data.Oracle.dll" because AutoUnify is 'true'.
Could not resolve this reference. Could not locate the assembly
"Microsoft.Win32.Registry, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

Required by ".nuget\packages\devart.data.oracle\9.4.348\lib\netstandard1.3\Devart.Data.Oracle.dll".
Required by "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.0\build\netstandard2.0\\ref\mscorlib.dll".
Required by ".nuget\packages\devart.data\5.0.1772\lib\netstandard1.3\Devart.Data.dll".

There was a conflict between "Microsoft.Win32.Registry, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
and "Microsoft.Win32.Registry, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Interestingly, there is no Microsoft.Win32.Registry, Version 4.1 listed on the package Nuget page https://www.nuget.org/packages/Microsof ... .Registry/.

If you do the following, the warning no longer appears.

Code: Select all

dotnet add package Microsoft.Win32.Registry -v 4.4.0
Currently, Devart.Data.Oracle is at 9.4.348.

Here are the details of my dotnet CLI.
.NET Command Line Tools (2.0.0)

Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9

Runtime Environment:
OS Name: Windows
OS Version: 6.1.7601
OS Platform: Windows
RID: win7-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0\

Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

Re: Warning MSB3277 for .NET Standard 2 library

Posted: Sat 09 Sep 2017 01:26
by WallaceKelly
By the way, the NLog library is having the same issue.
https://github.com/NLog/NLog/issues/2253

Re: Warning MSB3277 for .NET Standard 2 library

Posted: Mon 11 Sep 2017 15:29
by Shalex
dotConnect for Oracle supports .NET Standard 1.3 (.NET Core 1.3) at the moment. We will notify you when .NET Standard 2.0 support is implemented. An approximate timeframe is one month.

Re: Warning MSB3277 for .NET Standard 2 library

Posted: Mon 30 Oct 2017 19:37
by Shalex
.NET Standard 2.0 is supported: viewtopic.php?f=1&t=36128.