Skip to content

cert error in Aws lambda .net core 6 upgrade to 8 #1734

Answered by normj
sajanmje asked this question in Q&A

You must be logged in to vote

The .NET feature self contained only works when publishing executables not class libraries. The Empty Function blueprint creates a project as a class library. The Empty Top-Level Function blueprint is an executable where you can see it has the Lambda bootstrap code.

await LambdaBootstrapBuilder.Create(handler, new DefaultLambdaJsonSerializer())
        .Build()
        .RunAsync();

When you deploy a Lambda function as an executable like the Empty Top-Level Function blueprint does the handler is set to just the assembly name.

Replies: 1 comment 4 replies

You must be logged in to vote
4 replies
@sajanmje

@normj

@sajanmje

@normj

Answer selected by ashishdhingra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants