Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VS2012 Debugging add-in does not detect code changes

$
0
0

I am writing a Visual Studio 2012 Add-in using C#, .NET 4.5. Generally, I have been making some changes, run the Add-in in debug mode (which opens in a new instance of VS), test out my changes, etc. This has been working just fine until recently. Recently, I added a new method to a class in a DLL that my add-in references. I am able to see the new method in Intellisense just fine, can code against the method, the add-in builds just fine, etc. As before, I attempt to debug the code and test my changes, however, when I get to a method whose body makes a call to the new method I added in the referenced DLL, the call fails with a "System.MissingMethodException" indicating that the new method I added does not exist/cannot be found (note: the debugger will not even step into the method body).  I've reviewed several other similar posts (most seem to relate to debugging ASP.NET) and tried all the suggestions provided w/o any success.  Has anyone see this happen before and/or have any additional suggestions?

As a side note, I have tried changing the name of the method I added in the DLL and tried debugging... no luck.  Same error reported, just with the new method name I used.  Only way I have got it to work so far is to remove the call to my new method (which, of course, is no good since I need it in the end).

Other posts I've explored:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/23e70e79-970d-423f-b434-12681b88ef2c/visual-studio-2012-debug-runs-old-code

https://social.msdn.microsoft.com/Forums/vstudio/en-US/c76c57d8-e961-47d4-b7c2-59f1f43885ad/visual-studio-20122013-builds-old-code?forum=vsdebug and the various links it points to


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>