My source code for my MonoBehaviours in Unity is not scripts inside the Assets folder, but compiled DLL's that I add as Plugins.
I have added post-build events in Visual Studio for my C# project, to try to get around the work with having to copy the DLL file and the MDB file every time I've changed something.
copy /Y "$(TargetDir)$(ProjectName).dll" "$(SolutionDir)\..\Assets\Plugins\$(ProjectName).dll"
copy /Y "$(TargetDir)$(ProjectName).dll.mdb" "$(SolutionDir)\..\Assets\Plugins\$(ProjectName).dll.mdb"
It works like a charm... almost. The problem I'm encountering, is that the DLL builds, then this command is run, but the MDB file hasn't had time to update yet, so I get an old MDB file copied to the Assets/Plugins folder.
Is there a way to wait for the MDB file to update before copying it?