Warning MSB3277 for .NET Standard 2 library

Warning MSB3277 for .NET Standard 2 library

Postby WallaceKelly » Sat 09 Sep 2017 01:23

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/Microsoft.Win32.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
WallaceKelly
 
Posts: 2
Joined: Sat 09 Sep 2017 01:05

Re: Warning MSB3277 for .NET Standard 2 library

Postby WallaceKelly » Sat 09 Sep 2017 01:26

By the way, the NLog library is having the same issue.
https://github.com/NLog/NLog/issues/2253
WallaceKelly
 
Posts: 2
Joined: Sat 09 Sep 2017 01:05

Re: Warning MSB3277 for .NET Standard 2 library

Postby Shalex » Mon 11 Sep 2017 15:29

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.
Shalex
Devart Team
 
Posts: 7781
Joined: Thu 14 Aug 2008 12:44

Re: Warning MSB3277 for .NET Standard 2 library

Postby Shalex » Mon 30 Oct 2017 19:37

Shalex
Devart Team
 
Posts: 7781
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for Oracle