Visual Studio 2013 Website refresh/restart ignores

2019-06-24 08:22发布

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.

2条回答
趁早两清
2楼-- · 2019-06-24 08:51

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.

查看更多
\"骚年 ilove
3楼-- · 2019-06-24 08:55

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.

查看更多
登录 后发表回答