azure - localhost 和 Azure 中的不同 asp.net 核心逻辑
问题描述
我的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
?
解决方案
推荐阅读
- listview - rxdart replaySubject 流到颤动中的列表视图
- javascript - D3 组件与其他 React 组件重叠
- sql - 如何选择同事的第一拳
- c - 在C中将连续二进制分数转换为十进制分数
- mysql - MySQL“LIKE”忽略俄语单词的结果
- html - 在 Ajax ActionLink MVC 调用中将输入值作为参数传递
- sql - 我可以在三个 select 语句之间创建多个 Union 吗?
- html - 关键帧动画不执行
- c# - 通过单击按钮获取 ListView 项的值
- vue.js - 为什么引用不存在的静态 nuxt 资产的图像不会触发 @error?