Visual Studio 2015 - Webforms - Concrete Classes Not Recompiling?

My Visual Studio 2015 C # project has web forms and classes defined in a folder App_Code

. When building / restoring my solution, some of the specific classes in this folder are never recompiled - after compilation, their code does not change (although it would seem they did commit compilation).

This shows up as runtime error messages for the code I just changed, was unable to place breakpoints, etc.

I tried:

  • Rebuild

  • Removing ASP.NET Temporary Folders

  • (No "clean solution" because these are web forms)
  • Runs as admin

The only solution that works : reopening Visual Studio.


Illustration:

enter image description here

enter image description here


EDIT:

Now I found that deleting the folder C:\Users\kobydo\AppData\Local\Temp\Temporary ASP.NET Files

and then running the build also fixes this issue. But this is not a real solution.

Any idea why this is happening?

+3
c # visual-studio


source to share


No one has answered this question yet

See similar questions:

45
How to delete files in Visual Studio Pre-build command line

or similar:

1419
Using Git with Visual Studio
1104
.gitignore for Visual Studio projects and solutions
989
Can you get Visual Studio to run as administrator on Windows 8?
815
Difference between Build Solution, Rebuild Solution and Pure Solution in Visual Studio?
480
Debugging / loading Visual Studio is very slow
302
The breakpoint will not be removed at this time. No symbols have been loaded for this document in the Silverlight application
247
Visual Studio displays errors even though projects are being built
217
Why can't visual studio 2012 find my tests?
191
Visual Studio 2010 always thinks the project is out of date, but nothing has changed
104
"Go to definition" in Visual Studio only calls metadata



All Articles
Loading...
X
Show
Funny
Dev
Pics