I've created a Post-Build-Event in VS2010 for a project that copies the output *.dll file to another place, on the first build-attempt it builds without errors, but when I then try again, it fails with Error-Code 1 -> could not load file, because it's used by another process
post-build-command:
copy /Y "$(TargetDir)$(ProjectName).dll" "$(TargetDir)\..\..\..\LanguageContainerC111\bin\output_buildtasks\$(ProjectName).dll"
How can i solve this? the first project (where the .dll was generated) has no dependencies, the second that needs the dll has dependencies set to the first project, so why the commmand can fail?