任何时候,我都会在.hmtl文件或.js文件中进行代码更改,浏览器仍会呈现旧代码,而我的新代码更改不会显示在浏览器结果中。
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<div class="dashboard-stat blue-madison">
<div class="details">
<div class="desc">
{{this.satations.stationName}}
</div>
</div>
<a class="more" href="#/signals">
View more <i class="m-icon-swapright m-icon-white"></i>
</a>
</div>
</div>
</div>
然后我执行以下操作:
In VS2019, right click on my project and view in browser (IE or Chrome).
Login to my application.
Go the respective page and I see the rendering of the old html file. I do not see the newly added 2 div elements rendered at all.
我在做什么错了?
我什至按下f5键来刷新浏览器,但还是没有运气。 我还清除了google chrome和IIS的缓存,它一次又一次地工作,更改没有反映出来,我尝试了堆栈溢出的答案,但是没有结果,请事先感谢答案
答案 0 :(得分:0)
部署项目后,您会发现Visual Studio中将有一个额外的PublishProfiles文件夹。该文件夹的内容是用于发布程序信息的配置文件。您可以尝试删除此文件夹,然后运行您的项目。
答案 1 :(得分:0)
每次进行更改时,我不得不重新构建项目,这不是永久性的解决方案,而是四处走动