我的Asp.Net Core 2.1 Razor
页面网络应用程序使用Pages/Shared/_Layout.cshtml
其中包含标签<partial name="_LoginPartial" />
。如果它在 中运行localhost
,则在发布时Azure
使用 ,Pages/_LoginPartial.cshtml
而不是Pages/Shared/_LoginPartial.cshtml
。此外,如果我删除Pages/_LoginPartial.cshtml
并部署应用程序,Azure 服务器会显示不存在的旧版本Pages/_LoginPartial.cshtml
. 看起来某种缓存正在发生。我的问题是:
- 为什么
Azure
服务器不使用Pages/Shared/_LoginPartial.cshtml
而不是“不存在”的页面? Pages/_LoginPartial.cshtml
当服务器被删除而不是存在时,服务器从哪里得到Pages/Shared/_LoginPartial.cshtml
?