4.3 build error under ubuntu 18.04

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
dotnet restore NopCommerce.sln
cd ./Presentation/Nop.Web
dotnet build Nop.Web.csproj -c Release -o ~/app --runtime ubuntu.18.04-x64


  Restore completed in 4.62 sec for /nopCommerce430/Presentation/Nop.Web/Nop.Web.csproj.
/nopCommerce430/Libraries/Nop.Data/Nop.Data.csproj : error NU1605: Detected package downgrade: System.Net.NameResolution from 4.3.0 to 4.0.0. Reference the package directly from the project to select a different version.  [/nopCommerce430/Presentation/Nop.Web/Nop.Web.csproj]
/nopCommerce430/Libraries/Nop.Data/Nop.Data.csproj : error NU1605:  Nop.Data -> MySql.Data 8.0.20 -> SSH.NET 2016.1.0 -> System.Net.Sockets 4.1.0 -> runtime.unix.System.Net.Sockets 4.3.0 -> System.Net.NameResolution (>= 4.3.0)  [/nopCommerce430/Presentation/Nop.Web/Nop.Web.csproj]
/nopCommerce430/Libraries/Nop.Data/Nop.Data.csproj : error NU1605:  Nop.Data -> MySql.Data 8.0.20 -> SSH.NET 2016.1.0 -> System.Net.NameResolution (>= 4.0.0) [/nopCommerce430/Presentation/Nop.Web/Nop.Web.csproj]
  Restore failed in 1.74 sec for /nopCommerce430/Libraries/Nop.Data/Nop.Data.csproj.
  Restore completed in 2.24 sec for /nopCommerce430/Presentation/Nop.Web.Framework/Nop.Web.Framework.csproj.
  Restore completed in 1.34 sec for /nopCommerce430/Libraries/Nop.Core/Nop.Core.csproj.

Build FAILED.

/nopCommerce430/Libraries/Nop.Data/Nop.Data.csproj : error NU1605: Detected package downgrade: System.Net.NameResolution from 4.3.0 to 4.0.0. Reference the package directly from the project to select a different version.  [/nopCommerce430/Presentation/Nop.Web/Nop.Web.csproj]
/nopCommerce430/Libraries/Nop.Data/Nop.Data.csproj : error NU1605:  Nop.Data -> MySql.Data 8.0.20 -> SSH.NET 2016.1.0 -> System.Net.Sockets 4.1.0 -> runtime.unix.System.Net.Sockets 4.3.0 -> System.Net.NameResolution (>= 4.3.0)  [/nopCommerce430/Presentation/Nop.Web/Nop.Web.csproj]
/nopCommerce430/Libraries/Nop.Data/Nop.Data.csproj : error NU1605:  Nop.Data -> MySql.Data 8.0.20 -> SSH.NET 2016.1.0 -> System.Net.NameResolution (>= 4.0.0) [/nopCommerce430/Presentation/Nop.Web/Nop.Web.csproj]
    0 Warning(s)
    1 Error(s)

3 years ago
I have the same problem,
any help here please?
3 years ago
I personally suppress the warning by modifying Nop.Data.csproj file:

<PackageReference Include="MySql.Data" Version="8.0.20" >
      <NoWarn>NU1605</NoWarn>
    </PackageReference>


It helps me to successfully publish the code, but didn't check whether it hampers working with MySql.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.