modelsbuilder / ModelsBuilder.Original

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

Can't see how to gain access to visual studio intellisense for generated models #95

Closed a1exb1 closed 8 years ago

a1exb1 commented 8 years ago

If i include all.generated.cs, i get intellisense in my views but the view fails to compile when rendered.

How do you gain access to intellisense without including that file?

a1exb1 commented 8 years ago

fixed by: including "all.generated.cs" inside my project

and

adding this to Web.Config -> appSettings:

zpqrtbnk commented 8 years ago

Adding what to web.config ? ;-)

a1exb1 commented 8 years ago

Whoops haha, add:

<add key="Umbraco.ModelsBuilder.ModelsMode" value="Dll" /

To Web.config

This makes sure it doesnt compile the classes twice and throw an exception