Razor.Templating.Core icon indicating copy to clipboard operation
Razor.Templating.Core copied to clipboard

AWS lambda support?

Open vladopandzic opened this issue 3 years ago • 1 comments

I tried using this library on AWS lambda but I get error than views are unable to find. My views are localted in separate RLC which I referenced from lambda project

vladopandzic avatar Jun 06 '22 19:06 vladopandzic

Hi @vladop , I haven't tested on AWS lambda yet. I'll test & let you know. If possible please provide a sample. Thanks.

soundaranbu avatar Jun 08 '22 05:06 soundaranbu

We are using this library in AWS Lambdas without any modifications. All you should need to include in the Lambda project csproj file is this:

    <PropertyGroup>
        <AddRazorSupportForMvc>true</AddRazorSupportForMvc>
    </PropertyGroup>
    <ItemGroup>
        <PackageReference Include="Razor.Templating.Core" Version="1.9.0" />
    </ItemGroup>

kyle-covertree avatar Apr 12 '24 23:04 kyle-covertree

Thats great to know @kyle-covertree. I'm closing this issue then :)

soundaranbu avatar Apr 18 '24 08:04 soundaranbu