Skip to content

Use precompiled views #63

@jhorsman

Description

@jhorsman

The example site in the dxa-web-application-dotnet project uses the DXA Core module. The DLL of the Core module is not available on GitHub though, and the views have to be copied into the Site project manually (or with a post-build step in the Code module project).

This gets messy, especially when following the same pattern in custom modules, and using multiple module solutions.

The solution is using Razor Generator. I think this is an broadly accepted way to precompile MVC views. See https://github.com/RazorGenerator and https://community.sdl.com/product-groups/sdl-tridion-dx/tridion-sites/tridion-developer/b/weblog/posts/precompile-your-dxa-views-with-razor-generator.

Combined with a NuGet package for the DXA Core module, this would make it way easier to work with multi-module DXA solutions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions