[英]AWS Lambda Publish - error NU1605: Detected package downgrade
I use mysql database connection to a MySQL database with Entity Framework Core ( MySql.Data.EntityFrameworkCore v8.0.22
).我使用 mysql 数据库连接到带有 Entity Framework Core (
MySql.Data.EntityFrameworkCore v8.0.22
) 的 MySQL 数据库。 I use .NET Core 3.1.我使用 .NET Core 3.1。
I get this error when publishing:发布时出现此错误:
Error NU1605: Detected package downgrade: System.Diagnostics.Debug from 4.3.0 to 4.0.11.
错误 NU1605:检测到 package 降级:System.Diagnostics.Debug 从 4.3.0 到 4.0.11。 Reference the package directly from the project to select a different version.
直接从项目引用 package 到 select 一个不同的版本。
Error NU1605: Lambdaapp2 -> MySql.Data 8.0.22 -> SSH.NET 2016.1.0 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Diagnostics.Debug (>= 4.3.0)
错误 NU1605:Lambdaapp2 -> MySql.Data 8.0.22 -> SSH.NET 2016.1.0 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Diagnostics调试 (>= 4.3.0)
Error NU1605: Lambdaapp2 -> MySql.Data 8.0.22 -> SSH.NET 2016.1.0 -> System.Diagnostics.Debug (>= 4.0.11)
错误 NU1605:Lambdaapp2 -> MySql.Data 8.0.22 -> SSH.NET 2016.1.0 -> System.Diagnostics.Debug (>= 4.0.11)
Error NU1605: Detected package downgrade: System.IO.FileSystem.Primitives from 4.3.0 to 4.0.1.
错误 NU1605:检测到 package 降级:System.IO.FileSystem.Primitives 从 4.3.0 到 4.0.1。 Reference the package directly from the project to select a different version.
直接从项目引用 package 到 select 一个不同的版本。
Error NU1605: Lambdaapp2 -> MySql.Data 8.0.22 -> SSH.NET 2016.1.0 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.IO.FileSystem.Primitives (>= 4.3.0)
错误 NU1605:Lambdaapp2 -> MySql.Data 8.0.22 -> SSH.NET 2016.1.0 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System84.8682274 FileSystem.Primitives (>= 4.3.0)
I downgraded from MySql.Data.EntityFrameworkCore v8.0.22 to v8.0.21 and it magically started working.我从 MySql.Data.EntityFrameworkCore v8.0.22 降级到 v8.0.21,它神奇地开始工作了。 It looks like they updated lots of dependencies between 8.0.21 and 8.0.22 and some of these don't play well with AWS Lambda.
看起来他们在 8.0.21 和 8.0.22 之间更新了很多依赖项,其中一些不能很好地与 AWS Lambda 配合使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.