Visual Studio 2013, changes not showing in debug
Solution 1
Go to Tools-Options
Under Projects and solution -> Build and Run select "Always build" under "On Run, when projects are out of date"
Solution 2
I had the same issue today. I already had that setting on (Always Build). Cleaning & rebuilding the solution didn't do the trick. I looked under C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\ and I found a folder named root with a lot of temporary hexa-numeric named folders. Only one folder had today's date. I closed all VS 2013 windows and removed that folder. After I restarted VS 2013 I simply run the project and my changes are now back.
Solution 3
I just spent the past hour trying every answer and none of them worked. I simply cleared the cache on the browser I was using to debug (google chrome) and it updated my changes. This question had the correct answer: visual studio not updating html / javascript to server / browser
HuwD
Updated on July 06, 2020Comments
-
HuwD almost 4 years
Have recently upgraded to Visual Studio 2013 Pro and am having some teething problems.
Primarily if I change any HTML or CSS in either a .aspx page for Web Forms or .cshtml for MVC, the changes aren't always reflected on the page I'm working on when I debug it and don't appear not matter how times I refresh or clear my cache.
Am using web essentials, which should put the changes straight on the page with have to refresh the page but this doesn't seem to be working either.Also occasionally, but not always, if I stop debugging, change the code behind then run the project again it says it's running from a different version of the code than the one being debugged and I have to stop it, rebuild and then debug.
Have never had these problems on previous version of Visual Studio.
Any suggestions?
-
HuwD about 10 yearsCool, seems to be behaving itself now. Weird that isn't the default. Thanks
-
HuwD about 10 yearsActually may have been a little premature. The source code is building properly now but .aspx and .cshtml changes are still not updating?
-
huMpty duMpty about 10 years@HuwD: I had similar issue, but doing this it was sorted. Have you tried the this which balexandre mentioned in the comment?
-
HuwD about 10 yearsConfiguration manager has build selected for debug but don't see an option for compile. Only way I've found to get it show up to date code is select "Clean Solution" from the build menu
-
BossWalrus about 9 yearsInsane. This was my last hope and you saved me. Thank you!
-
reaz almost 9 yearsThis answer has nothing to do with the problem.
-
AggieEric almost 8 yearsThis option just synchronized the solution explorer to highlight the active document. This doesn't affect how changed files are served by the development server.
-
Rich Freeman about 7 yearsThis worked temporarily. I'd been using the Mac Dropbox that Parallels let me access as an external drive. When I Ioaded Dropbox natively onto the WinVM this problem went away. Incidentally build times improved too, which was nice.
-
Sue over 6 yearsI'm having the same issue, where whenever I have made changes to the controller it doesn't take effect and I have tried this method but nothing seems to change
-
Sue over 6 yearsI see it create the folder root in 2 different folders framework & framework64