Thursday, October 7, 2010

VSTO: The breakpoint will not currently be hit.

Problem
Whenever I debug my VSTO project and set a breakpoint I get "The breakpoint will not currently be hit. The source code is different from the original version". It also will never run my new code.

Solution
This occurrs when you have deployed the VSTO solution to your development machine. It runs the deployed code every time instead of your modified code. Remove the installed version and everything will work as expected.

No comments:

Post a Comment