Lambda Test Tool 3.1 in Rider on Ubuntu: Failed to find type

Viewed 500

I've recently moved from Windows to Ubuntu and started using Rider as my .NET IDE, now I'm trying to get the AWS .NET Lambda Test Tool to work and followed the readme in the repo carefully but I can't seem to figure out why my setup isn't working.. It's complaining about a the type that can't be found of the method I'm pointing to.

exe path I'm pointing to: /home/bruno/.dotnet/tools/.store/amazon.lambda.testtool-3.1/0.11.3/amazon.lambda.testtool-3.1/0.11.3/tools/netcoreapp3.1/any/Amazon.Lambda.TestTool.BlazorTester.dll (which is valid considered Rider)

and I'm pointing to my bin/debug/netcoreapp3.1 from my lambda project root, the readme says just point to your lambda project root, I've tried that too but didn't same to work.

/home/bruno/Work/tariffinfo-export/src/TariffInfo.Export.Processor.Lambda/bin/Debug/netcoreapp3.1

I use an additional aws-lambda-tools-defaults-mainqueuehandler.json, which looks like this:

enter image description here

The error I'm getting is:

Failed to find type TariffInfo.Export.Processor.Lambda.EventHandler"

EventHandler is my class inside the proj.

1 Answers

Resolved

After adding <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> to the targeted .csproj

Related