This is a migrated thread and some comments may be shown as answers.

Project Not Compiling with UI for ASP.NET MVC from NuGet and MvcBuildViews=true

3 Answers 121 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tawab
Top achievements
Rank 1
Tawab asked on 14 Mar 2019, 08:33 PM

I'm experiencing the issue described in this thread:

https://github.com/telerik/kendo-ui-core/issues/3793

 

In other words, I've downloaded Telerik.UI.for.AspNet.Mvc5 (v2019.1.220) from NuGet and my project won't build unless I open the .csproj file and set MvcBuildViews to false.  Obviously, this is not ideal as it means changing that flag every time I want to build.  The only other workaround I know of is to remove the offending template files, but this would break some of the controls, as mentioned in the thread.

 

Do you know of any other workarounds?

3 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 18 Mar 2019, 04:10 PM
Hi,

I suppose that after installing the nuget there are two sets of templates and only one is breaking compilation right? If that is the case deleting the problematic templates should resolve the problem. 

Regards,
Angel Petrov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Tawab
Top achievements
Rank 1
answered on 18 Mar 2019, 06:33 PM
Thanks for your reply.  I'm not sure what you mean by "two sets of templates".  The templates I'm referring to consist of thirteen .ascx files and they are in the Content/kendo/2019.1.220/ascx folder.  If I delete those files, I get several build errors related to those files.  If I then also delete the corresponding view files from Content\kendo\2019.1.220\razor, then the project compiles.  I can document this in my project and make this the workaround (assuming I don't discover later that those files are used).  However, I was hoping there was a better way.
0
Angel Petrov
Telerik team
answered on 20 Mar 2019, 03:48 PM
Hi,

By two set of templates I was referring to the ascx and cshtml files which are the same contentwise. In most of the cases the application consumes the chtml files and removing the ascx files resolves the problem. This however may not be case for the project mentioned in your last reply. 

Regards,
Angel Petrov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Tawab
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Tawab
Top achievements
Rank 1
Share this question
or