In Visual Studio 2017:
- Edited My_Layout.cshtml then right-clicked file > Preview changes to My_Layout.cshtml - change detected
- Right-clicked file > Publish My_Layout.cshtml
- Web Publish Activity:
Preparing to publish files...
Using ID '8eba-fa723c2cc7fe' for connections to the remote server.
Using ID '99ee-a03ad6ce124b' for connections to the remote server.
Updating file (/pj/My_Layout.cshtml).
Your file(s) have been successfully published. - Checked My_Layout.cshtml file content via FTP client - file is updated
- Refreshed browser - website does not update
The website updates only after an app restart.
What is causing the site to not update after publishing my file and how to fix the issue?