aws-lambda-dotnet icon indicating copy to clipboard operation
aws-lambda-dotnet copied to clipboard

Missing CsharpHandlers files

Open VinditCo opened this issue 8 years ago • 2 comments

Hello,

Using latest .NET Core 2.1.4, the Serverless Framework build command : dotnet lambda package --configuration release --framework netcoreapp2.0 --output-package bin/release/netcoreapp2.0/deploy-package.zip

fails to create the following files CsharpHandlers.deps CsharpHandlers.dll CsharpHandlers.pdb

The function then fails to run.

Anyone having the same issue ? Does the build command need additional flags to create CsharpHandlers?

VinditCo avatar Jan 16 '18 16:01 VinditCo

Can't really help you until you provide more information about your project (the files, deps, etc). I don't know what those 3 files are for, or why they're important.

My inkling is that it's an issue with the Serverless Framework.

Shockolate avatar Jan 16 '18 16:01 Shockolate

I've looked into this a bit more and I think you're right. The default syntax for function handlers in the Serverless Framework YML setup is :
receivepost: handler: CsharpHandlers::namespace::class etc

Thanks for the quick reply!

VinditCo avatar Jan 16 '18 16:01 VinditCo