我开发了一个lambda函数,该函数在本地计算机上构建良好,但是当我尝试将其发布到AWS时,出现以下错误:
publish: C:\temp\proj.csproj : error NU1605: Detected package downgrade: System.Diagnostics.Debug from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version.
... publish: C:\temp\proj.csproj : error NU1605: ProjectSubscriptionStateChange -> Amazon.Lambda.Serialization.Json 1.4.0 -> Newtonsoft.Json 9.0.1 -> System.Xml.ReaderWriter 4.0.11 -> System.IO.FileSystem 4.0.1 -> runtime.unix.System.IO.FileSystem 4.3.0 -> System.Diagnostics.Debug (>= 4.3.0)
... publish: C:\temp\proj.csproj : error NU1605: ProjectSubscriptionStateChange -> Amazon.Lambda.Serialization.Json 1.4.0 -> Newtonsoft.Json 9.0.1 -> System.Diagnostics.Debug (>= 4.0.11)
... publish: Restore failed in 1.08 sec for C:\temp\proj.csproj.
我曾尝试将“警告”抑制为项目设置中的错误,但是我仍然收到这些错误-任何想法吗?