Code: Select all
dotnet new library
dotnet add package Devart.Data.Oracle
dotnet build
The detailed build log states the following:warning MSB3277: Found conflicts between different versions
of the same dependent assembly that could not be resolved.
Interestingly, there is no Microsoft.Win32.Registry, Version 4.1 listed on the package Nuget page https://www.nuget.org/packages/Microsof ... .Registry/.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".
If you do the following, the warning no longer appears.
Code: Select all
dotnet add package Microsoft.Win32.Registry -v 4.4.0
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