-
Notifications
You must be signed in to change notification settings - Fork 66
Description
I have noticed an issue when converting my references to use Nuget Packages. When I make changes to the views they do not show up in the browser.
Test Steps:
- I have installed a fresh installation of Sitefinity using the Project Manager.
- I drag in a News widget for testing. Make the changes to \ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml
- I refresh the browser and the changes show up. (All working fine)
- I then update the whole solution to use Nuget Packages.
- Make changes to the same file
- The changes do not show up.
- If i build the solution they then show up.
- So this means any time i make changes to the view file i would need to build the solution in order to see the changes on the website. (Which isnt how it should be working)
After some investigation I found if I disabled the Feather Razor Precompilation the changes would appear without building the solution.
I did this by:
- \packages\Telerik.Sitefinity.Feather.1.5.470.0\build\Telerik.Sitefinity.Feather.targets
- Comment out the RazorCodeGen note.
ie.
<!-- Please uncomment this in case of using Feather Razor precompilation <RazorCodeGen ProjectRoot="$(MsBuildProjectDirectory)\$(FeatherResourcePackagesFolderName)\%(FeatherRazorSrcFiles.PackageName)\" FilesToPrecompile="@(FeatherRazorSrcFiles)" CodeGenDirectory="$(RazorViewsCodeGenDirectory)$(FeatherResourcePackagesFolderName)\%(FeatherRazorSrcFiles.PackageName)" RootNamespace="$(RootNamespace).$(FeatherResourcePackagesFolderName).%(FeatherRazorSrcFiles.PackageName)"> <Output TaskParameter="GeneratedFiles" ItemName="FeatherRazorOutputFiles" /> </RazorCodeGen> -->
I then build the solution. The changes show up without me having to build the solution.
Any idea why this is? Am i doing something wrong?
Thanks,
Edin