MRCollective / ChameleonForms

Shape-shifting your forms experience in ASP.NET Core MVC
MIT License
254 stars 56 forks source link

Default RegisterChameleonFormsComponents doesn't compile #71

Closed becdetat closed 10 years ago

becdetat commented 10 years ago

I created a new MVC 4 app and added the CF nuget package (version 1.0.0.42). This created App_Start/RegisterChameleonFormsComponents.cs. Building the project tells me:

The type or namespace name 'Binders' does not exist in the namespace 'ChameleonForms.ModelBinders' (are you missing an assembly reference?)

Changing:

ModelBinders.Binders.Add(typeof(DateTime), new DateTimeModelBinder());
ModelBinders.Binders.Add(typeof(DateTime?), new DateTimeModelBinder());

to:

System.Web.Mvc.ModelBinders.Binders.Add(typeof(DateTime), new DateTimeModelBinder());
System.Web.Mvc.ModelBinders.Binders.Add(typeof(DateTime?), new DateTimeModelBinder());

compiles ok. I'm guessing a namespace conflict.

robdmoore commented 10 years ago

This has been released as v1.0.1.

Thanks mate!