blipson89 / Synthesis

Synthesis is a universal object mapper for Sitecore
MIT License
75 stars 25 forks source link

Feature Request: Make ViewModelTypeResolver work with precompiled views #83

Open mrambold opened 5 years ago

mrambold commented 5 years ago

We are using precompiled views with RazorGenerator.MsBuild and do not want to deploy the .cshtml files anymore. But if the .cshtml files are not in the Views folder, the ViewModelTypeResolver throws exceptions, since BuildManager.GetCompiledType(viewPath) expects those files to physically be there. It would be great if the type resolving could take the precompiled views into account (maybe by using the ViewEngineCollection?).

We use Sitecore 9.1 and Synthesis 9.1.0.2-beta1.