Copying this post from http://social.msdn.microsoft.com/Forums/en-US/b8d31c6f-033f-4517-beb4-d8f73d4688d9/visual-studio-premium-2013-pdb-files-are-locked-by-devenv?forum=visualstudiogeneral
We have the same issue in VS2013 when running a WPF application using Prism. It seems when you compile and debug the application once all is fine. But when you then make code changes to a DLL which is not referenced directly by the main EXE then the pdb file is locked and cannot be overwritten by our post-build event which copies the output from each project to the main bin folder.
Our post-build event code is:
xcopy "$(TargetDir)*.*" "$(SolutionDir)client\PRLPlanning\$(OutDir)" /Y /D
Any advice greatly appreciated because right now we have to restart VS2013 every time we want to change code and debug a 2nd time. If I cant find a solution Very soon going to have to revert to VS2012.
Thanks,
Doug