More in this section
Forums / Developing with Sitefinity / MVC Template Cache problem

MVC Template Cache problem

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Mihail
    Mihail avatar
    0 posts
    Registered:
    15 Feb 2016
    16 May 2017
    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
    17 May 2017
    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