1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / MVC Template Cache problem

MVC Template Cache problem

2 posts, 0 answered
  1. Mihail
    Mihail avatar
    0 posts
    Registered:
    15 Feb 2016
    16 May
    Link to this post

    Hi,

    I have a project with SF 9.0.6000.0 version. I have created a MVC template following this instructions http://docs.sitefinity.com/feather-create-layout-files.

    The problem is that when I modify the .cshtml file the changes are not applied until project rebuild.

    Feather is installed. I have tried to clear the browser's cache.

    There is something interesting: in another project with SF 8.1.5824.0 the modified Layout file is immediately updated when I check it in Design >  Page templates section.

    So can you help me to find which setting can cause that behavior? I need to see changes immediately after changing the content of the.

  2. Mihail
    Mihail avatar
    0 posts
    Registered:
    15 Feb 2016
    5 days and 1 hour ago
    Link to this post

    Just found a work-around.

    https://github.com/Sitefinity/feather/issues/2473

    removing this two lines from .csproj file fixed the issue.

    <Import Project="..\packages\RazorGenerator.MsBuild.2.4.1\build\RazorGenerator.MsBuild.targets" Condition="Exists('..\packages\RazorGenerator.MsBuild.2.4.1\build\RazorGenerator.MsBuild.targets')" />
     <Import Project="..\packages\Telerik.Sitefinity.Feather.1.5.470.0\build\Telerik.Sitefinity.Feather.targets" Condition="Exists('..\packages\Telerik.Sitefinity.Feather.1.5.470.0\build\Telerik.Sitefinity.Feather.targets')" />

     

2 posts, 0 answered