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

4 posts, 0 answers
  1. Tawab
    Tawab avatar
    8 posts
    Member since:
    Jun 2011

    Posted 14 Mar 2019 Link to this post

    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?

  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1140 posts

    Posted 18 Mar 2019 Link to this post

    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.
  3. Tawab
    Tawab avatar
    8 posts
    Member since:
    Jun 2011

    Posted 18 Mar 2019 in reply to Angel Petrov Link to this post

    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.
  4. Angel Petrov
    Admin
    Angel Petrov avatar
    1140 posts

    Posted 20 Mar 2019 Link to this post

    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.
Back to Top