Is dotnetcore2.2 valid value for runtime:

I am getting the following error. Is dotnetcore2.2 a valid value for runtime: field in serverless.yml. If its not, then how do I deploy .NET Core 2.2 applications? on aws? I am doing it on a Mac

Serverless Error ---------------------------------------

An error occurred: ApiLambdaFunction - Value dotnetcore2.2 at ‘runtime’ failed to satisfy constraint: Member must satisfy enum value set: [java8, nodejs6.10, nodejs8.10, python2.7, python3.6, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, go1.x] or be a valid ARN (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 293de1fa-4cba-11e9-b46c-83c063587c55).

Your Environment Information -----------------------------
OS: darwin
Node Version: 10.15.0
Serverless Version: 1.39.1

1 Like

@anand.chauhan.uaz Same problem here. I think they still don’t support dotnet core 2.2.
Were you able to solve it ?

According to AWS Lambda only supports 1.0 and 2.1

1 Like

@buggy Yeah true, thanks :slight_smile:

You can build a function using .NET core 2.2:

1 Like

I have tried using the custom runtime support for AWS lambda and dotnetcore2.2 but can’t deploy my stack due to this Serverless error. The only way to get Serverless to deploy it is to change the runtime to dotnetcore2.1 but the the API errors with:

The specified framework 'Microsoft.AspNetCore.App', version '2.2.0' was not found.

This is understandable but I’m stuck on the initial runtime deployment. Please see my repo here and suggest any fixes.

Hi. Yeah im having the same issues getting .NET CORE 3.0-preview working with it. I got the builder working, but now i understand that serverless isnt supporting the push of netcoreapp3.0 yet :frowning: :frowning: boo hoo