modelsbuilder / ModelsBuilder.Original

The Community Models Builder for Umbraco
MIT License
114 stars 49 forks source link

Generate models in a DLL #2

Closed zpqrtbnk closed 10 years ago

zpqrtbnk commented 10 years ago

(proposed by Ken Jacobsen)

Add... "an option to generate a DLL instead of code files in App_Code, so the server doesn’t have to recompile the code files on start-up. The DLL should probably be named after the model namespace, [Zbu.ModelsBuilder.ModelsNamespace].dll".

Would be a new config option EnableDllModels that would cause files to be generated in AppData (so you can merge your own files/partials there), and then compiled to a DLL.

zpqrtbnk commented 10 years ago

Work-in-progress. Compiling using the Roslyn compiler that we are already using to parse existing files. Which means we support some of the new C# v6 enhancements ;-)

zpqrtbnk commented 10 years ago

Working. And now also using the Roslyn compiler for pure live models.

zpqrtbnk commented 10 years ago

In 2.0.0-beta8.