Could not load type 'System.Web.Mvc.ViewUserControl'
Every ascx control supplied by Telerik in /Content/kendo/2017.3.1116/ascx fails to compile:
_Could not load type 'System.Web.Mvc.ViewUserControl'_
The project compiles, as it compiles properly, when '/Project/PropertyGroup/MvcBuildViews' value = 'false'
We should also check the AspNet.Mvc3 and AspNet.Mvc4 packages as well as the trial packages for MVC 3, 4 and 5.
@ag-petrov fixed it by removing EditorTemplates from the nuget packages. However components that rely on them (Grid for examples) wouldn't be able to use these templates from the nuget package. This way clients using the MVC installer will get the templates, but clients using Nuget packages will not.
@ivanchev @hadjieva Could you please provide your opinion and approve this fix?
I wouldn't say. Let's try to fix the issue while preserving the availability of the templates.
Personally, I think that the nuget package should only contain binaries, scripts and styles. The editors seem like delivering custom logic through nuget. Maybe @tsvetomir or @rkonstantinov can share why were the editors included in the first place.
The editor template are there as like @matanasov said, grid component editing feature relies on them. Otherwise, client will end up with Grid with only plain input[type=text] elements and will open a support ticket to ask where the "normal" editors are.
I also think that the Editor template should be preserved, otherwise it would be a breaking change. Let's try to fix the MVC project compiling in a different way.
After a discussion we decided not to alter the current behavior as this may affect how the editors are distributed which will be a breaking change.
Most helpful comment
The editor template are there as like @matanasov said, grid component editing feature relies on them. Otherwise, client will end up with Grid with only plain input[type=text] elements and will open a support ticket to ask where the "normal" editors are.