Closed pbrianmackey closed 4 years ago
I will close all Lambda and Functions issues, as it we do not support these environments yet. There must be something specific about the environment that executes your functions
We were able to use Razorlight in a Lambda by supplying this setting
"msbuild-parameters": "/p:PreserveCompilationContext=true"
in the aws-lambda-tools-defaults.json file.
RazorLight 2.0.0-beta1
Error
This error pops up only after we deploy to AWS. On the local machine things work fine. I've already added PreserveCompilationContext to the *.csproj file.
We use circleci for deployments. The API that's having this problem is hosted in AWS Lambda. The issue only happens in AWS Lambda. On the local environment we have no problem.
I found that people are getting this same error in Azure Functions. Is that similar to Lambda's and maybe requires a similar fix? If yes, how can I fix this in a Lambda?
I've also tried to set SetOperatingAssembly(Assembly.GetExecutingAssembly())