Compilation of the problem. WITH#

There was a problem.

When I recompile my code, the changes do not take effect. I tried adding MessageBoxes, changing labels, text color .. that's it. When I recompile nothing changes, it seems to load the old code.

Any idea what is going on? Is there a cache or something else?

+3
source share
8 answers

I had this problem when I had a GAC ​​version of the same DLL that I was trying to debug. At boot time, the run time took the version from the GAC, not just the one I just compiled.

+2
source

Are you sure you are using the same code that you changed? Try to perform single stepping through the application, and do not run.

+1

, .

+1

. Solution ( Project) "clean".

0

Try to open the "Modules" window (from the "Debug-> Windows" menu). This will show you where the runtime loads your assemblies.

0
source

Build → Rebuild solution. This will do the cleaning and build for you.

0
source

And very rarely delete the .suo file associated with the project .. Which will force the rebuild ..

0
source

Try to create a new project.

0
source

Source: https://habr.com/ru/post/1729770/


All Articles