Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Razor views don't recompile after file is changed if Nuget Feather Razor precompilation is on. #2473

Copy link
Copy link
@elivnjak

Description

@elivnjak
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.