0
  1. Start debugging. During debugging unhandled exception was thrown.

  2. Stop debugging.

  3. Edit code, start debugging with build, and build error appears

error

I think Visual Studio don't release these files after first debugging.

This error can appear even if exception wasn't thrown, but if debugging was just stopped.

How to fix it?

RBT
  • 24,161
  • 21
  • 159
  • 240
lenix
  • 73
  • 1
  • 6
  • Can you please try restarting Visual Studio once and then try rebuilding your solution? – RBT Aug 29 '18 at 11:24

2 Answers2

1

I think the best and quickest way is to close VS and kill all VS related processes in Task manager.

0

Try cleaning and then building your project instead of just building your project

Sunley95
  • 21
  • 10