C# Visual Studio Copy Output File From One Project to Another
If you are someone new to post build events, it might somewhat tricky to get going with it. A common use case for a post build event is to copy the output of one project to another folder(possibly another project).
For the command below, the use case was to copy a compiled executable from Project A to Project B’s folder within the same solution.
xcopy /Q /Y "$(TargetPath)" "$(SolutionDir)$(SolutionName)\$(OutDir)"
For further information, it is recommended you take a look at the documentation here
and understand the various commands and format yourself.