Visual Studio 2013 Website refresh/restart ignores code changes

。_饼干妹妹 提交于 2019-12-10 16:17:30

问题


When I have a website in VS2013 (either a web-application or a web-type project), and I make a change to the code, such as a JS change or an HTML change, this change is not reflected in the browser after a refresh. The following are the things I have tried which did not work:

  • Clearing browser cache/restarting browser
  • Stopping VS debug, and restarting project
  • Cleaning VS solution, rebuilding, and restarting
  • Cleaning VS solution, shutting down VS, and completely restarting VS
  • Browser link refresh

The only way I can get my code changes to take effect (either JS or html) is to either manually quit IISExpress/VS and restart my computer.

Without being too dramatic, this is unacceptable. How do I fix this?

Thank you.


回答1:


I too have come across the same issue and it seems that it comes from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET files.

If you delete these files and reload your page everything works. I'm still unsure why Visual Studio is not updating these files.




回答2:


I recently came across this issue and it appeared as if IIS Express was running an older branch of my code even though I was launching from the newer branch. Try shutting down Visual Studio and re-opening the project.



来源:https://stackoverflow.com/questions/26536664/visual-studio-2013-website-refresh-restart-ignores-code-changes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!