简体   繁体   中英

Changes not being shown in changed MVC index.cshtml

I am learning MVC. I am following a tutorial and have made a simple text change to my index.cshtml. In order for changes to show I have to restart VS, in which case the changes do show. I have tried different browsers. I have tried clearing all cache. I have tried building before running. I am using VS Professional 2015.

Any suggestions on how to see my changes without having to restart VS each time?

First of all try server refreshing (CTRL + F5 / Shift + F5 / CTRL + R depending on the browser).

If this doesn't work, and if you're just running your app locally with visual studio, just RE-RUN (shift + F5, F5) and make sure you also stop the asp.net development server.

If you've installed the MVC proyect as a site in your iis, just restart the iis. In case this isn't enough, you can recycle the application pool. And even if all of this doesn't work, just delete all asp.net temporary files (this Link explains where they are located).

My personal experience: try the first one more than once, it always works.

我不确定实际的问题是什么,但是重新启动后解决了我的问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM