MS recommends to add a postbuild-event to the Project options here.
[…]Sometimes it is possible that
mspdbsrv.exe stays alive even after
the build is over. In such scenarios,
it is safe to add a post build event
to kill the mspdbsrv.exe.
Background infos on postbuild-Events can be found on the linked page.