Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon.Lambda.Tools does not seem to support Microsoft.NETCore.App 3.0 #96

Closed
l1x opened this issue Dec 1, 2019 · 3 comments
Closed
Labels
guidance Question that needs advice or information. module/cli-ext response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@l1x
Copy link

l1x commented Dec 1, 2019

I get the following error when building with netcoreapp3.0:

dotnet lambda package --configuration release --framework netcoreapp3.0 --output-package bin/release/netcoreapp3.0/deploy-package.zip
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.1.0' was not found.
  - The following frameworks were found:
      3.0.1 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The .NET Core frameworks can be found at:
  - https://aka.ms/dotnet-download

Is this expected?

@klaytaybai klaytaybai added the guidance Question that needs advice or information. label Dec 3, 2019
@klaytaybai
Copy link

Hi @l1x. I don't think this error is expected. Reading dotnet/core#3487 might help you out.

You can read more about working with .NET Core 3.0 in Lambda here.

@klaytaybai klaytaybai added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Dec 3, 2019
@l1x
Copy link
Author

l1x commented Dec 5, 2019

Thanks. I think 3.1 is a LTS and it is going to be supported as a runtime. I am going to wait for that.

@l1x l1x closed this as completed Dec 5, 2019
@scionwest
Copy link

scionwest commented Dec 8, 2019

Hi @l1x and @klaytaybai - I have a repository that you can use as reference for deploying a .Dotnet Core 3.0 Runtime into Lambda using the AWS extensions for the Dotnet CLI.

The repository is here. There is a file called Program.cs where I instantiate an instance of Lambda entry class. My Lambda entry is wrapped by an Amazon HandlerWrapper and LambdaBootstrap instance. You just need to add the Amazon.Lambda.RuntimeSupport NuGet package.

The repository can be cloned and ran as-is. You can deploy the Dotnet Core 3.0 runtime into your AWS environment, the Readme includes instructions to do so via the Lambda Dotnet CLI extension.

You can read more about how it works from the AWS blog post. You'll want to note the differences in the serverless.template file as the runtime is left blank due to the Lambda providing the runtime as part of the deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information. module/cli-ext response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

4 participants