A Serverless v1.0 plugin to build your C# lambda functions on deploy.
This plugin is for you if you don't want to have to run
dotnet publishand zip the output manually every time you want to deploy.
npm install serverless-dotnet
Add the plugin to your
plugins: - serverless-dotnet
And that's all there is to it. From this point,
dotnet publishwill run as part of each
serverless deployrun and the output will be zipped into the
.serverlessfolder of your service, as it would for other runtimes.
NoteIf you are using the
aws-csharpservice template, you will need to remove the following line from your
serverless.ymlfile as these are not needed any more:
package: artifact: bin/Release/netcoreapp1.0/publish/deploy-package.zip