We have an asp.net core 2.0 project (migrated from 1.x) running on Vs2017.3 (updated from 2017.2).
After the update, breakpoints stop being hit. Vs reports that "The breakpoint will not currently be hit. The source code is different from the original version".
Things were normal before updating and migration. The problem can be seen after updating to 2017.3 and before migrating to asp.net core 2.0.
I know about the workaround: To right-click and force the breakpoint to be hit even when the source codes are different. I need a solution.
Clean-rebuild has no effect. The problem occurs on multiple computers.
I lost 30 minutes reading and trying solutions. My case was completely different and the solution was very easy. I just had to change the project to Debug. I do not know how the value changed to Release. With VS2017, right click on the solusion then / properties / Configuration properties / Configuration, change the projects to Debug.
Another solution that worked for me and was not listed here was the following:
Boom! You should be able to set breakpoints once again!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With