Tip for razor pages not refreshing on reload with Service Fabric

July 7th, 2017 by admin Leave a reply »

If you are having issues with your razor pages only refreshing when you start/stop the project here is a tip I found.

First go to your Service Fabric project properties and change the Application Debug Mode to “Refresh Application (Preview)” as detailed in this blog post: https://blogs.msdn.microsoft.com/azureservicefabric/2017/04/17/speed-up-service-fabric-development-with-the-new-refresh-application-debug-mode-2/

Then you have to make sure before you fire up your application to change the nodes to 1.  You can do this after you have installed the Service Fabric SDK and then right clicking on the tray app it installs and choosing “1 node”.  You have to be running in single node for the Refresh feature to work.

Hope this helps someone!!


Leave a Reply