I have developed a lambda serverless project with .Net core API and trying to deploy the package using dotnet lambda deploy-serverless
project: AWS lambda serverless .Net core API target framework: 2.1 error shown in dotnet deploy-servreless
I have read this article and many similar topics, about roslyn but doing these tasks didn't solve my issue.
Update: The API project builds with no warnings and even runs with visual studio, calling endpoints don't have any bugs even. The problem occurs deploying with powershell / dotnet lambda command
PM> Uninstall-package Microsoft.CodeDom.Providers.DotNetCompilerPlatform
PM> Uninstall-package Microsoft.Net.Compilers
But following the answers didn't solve my problem. I hadn't these packages in my solution and even installing them resulted in conflict warning, with .net core. I don't think my case is about roslyn.