MVC Template Cache problem

Posted by Community Admin on 04-Aug-2018 15:30

MVC Template Cache problem

All Replies

Posted by Community Admin on 16-May-2017 00:00

Hi,

I have a project with SF 9.0.6000.0 version. I have created a MVC template following this instructions 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.

Posted by Community Admin on 17-May-2017 00:00

Just found a work-around.

github.com/.../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')" />

 

This thread is closed