简体   繁体   English

从Visual Studio发布Azure Web App不会更新网站

[英]Publish Azure Web App from Visual Studio does not update website

In Visual Studio 2017: 在Visual Studio 2017中:

  1. Edited My_Layout.cshtml then right-clicked file > Preview changes to My_Layout.cshtml - change detected 编辑My_Layout.cshtml,然后右键单击文件>预览对My_Layout.cshtml的更改-检测到更改
  2. Right-clicked file > Publish My_Layout.cshtml 右键单击文件>发布My_Layout.cshtml
  3. Web Publish Activity: 网络发布活动:
    Preparing to publish files... 正在准备发布文件...
    Using ID '8eba-fa723c2cc7fe' for connections to the remote server. 使用ID'8eba-fa723c2cc7fe'连接到远程服务器。
    Using ID '99ee-a03ad6ce124b' for connections to the remote server. 使用ID'99ee-a03ad6ce124b'连接到远程服务器。
    Updating file (/pj/My_Layout.cshtml). 更新文件(/pj/My_Layout.cshtml)。
    Your file(s) have been successfully published. 您的文件已成功发布。
  4. Checked My_Layout.cshtml file content via FTP client - file is updated 通过FTP客户端检查了My_Layout.cshtml文件内容-文件已更新
  5. 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? 是什么导致网站发布我的文件后无法更新,以及如何解决此问题?

try set Fcmode to Default. 尝试将Fcmode设置为Default。

  • Default: For each subdirectory, the application creates an object that monitors the subdirectory. 默认值:对于每个子目录,应用程序都会创建一个监视子目录的对象。 This is the default behavior. 这是默认行为。
  • Disabled: File change notification is disabled. 禁用:禁用文件更改通知。
  • NotSet: File change notification is not set, so the application creates an object that monitors each subdirectory. NotSet:未设置文件更改通知,因此应用程序创建一个监视每个子目录的对象。 This is the default behavior. 这是默认行为。
  • Single: The application creates one object to monitor the main directory and uses this object to monitor each subdirectory. Single:应用程序创建一个对象来监视主目录,并使用该对象来监视每个子目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio发布到Azure网站会导致整个网站回收吗? - Does Visual Studio Publish to Azure Website Cause Whole Site to Recycle? Visual Studio - 将 Web 应用程序发布到 Azure“重新输入您的凭据”不起作用 - Visual Studio - Publish Web App to Azure “Reenter your credentials” does not work 从 Visual Studio 发布后,Azure 网站不刷新 - Azure website not refreshing after publish from Visual Studio 通过Visual Studio for Mac发布Azure Web App - Publish an Azure Web App via Visual Studio for Mac 无法使用 Visual Studio 2019 和 Azure 发布 web 应用程序 - cannot Publish web app with Visual Studio 2019 and Azure 使用Visual Studio发布Azure Web应用-不包括所有文件 - Azure web app publish with Visual Studio - not including all files Visual Studio 2019,对于 NodeJs Web 应用程序,发布到 Azure 失败 - Visual Studio 2019, Publish to Azure is failed for NodeJs Web App Visual Studio 2015如何发布Web应用程序和SQL,更新数据库 - How Visual Studio 2015 Publish Web app and SQL, update DB Visual Studio丢失用于Azure网站发布的密码 - Visual Studio loses password for Azure Website Publish 使用Visual Studio将带有网站的DLL发布到Azure - Publish dll with website to Azure using Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM