Why can't I add code to a C# project in Visual Studio 2008
Posted on 2010-11-29
I have an intermittent problem with visual studio 2008. I will work on a project for a period of time (not sure if length of time matters) but sometimes I will add code to a project and that code doesn't get incorporated into the project, it's there, it's saved, but it doesn't affect the behavior of the code.
For example, today I have a project that is working, but I wanted to add a simple switch statement. I added it, but the changes didn't appear in my results when I run the code in debug. So I added a writeline statement inside the switch and still nothing. I have encountered this behavior before and I have had to create a new project and paste the old code into it, at which time the changes are recognized.
Has anyone else encountered this? Any idea how to fix?