Search code examples
c#visual-studiomsbuildpost-build-event

What is the right way to move references around in my output folder?


My solution contains a few default Plugin projects which our build into

<OutputPath>..\bin\Debug\Plugins\$(MSBuildProjectName)</OutputPath>

Doing that all referencec assemblies end up in the same folder as my project assembly. I would like to have them in

..\bin\Debug\Plugins\$(MSBuildProjectName)\Dependencies\

I successfully did by moving the dlls around from the post-build event command line.

Is this the right way? Or what should I do instead?


Solution

  • Is this the right way? Or what should I do instead?

    I think this is already the correct way, because no matter what method you using, you still needs to move/copy the files in this situation.

    Just meet your requirement is ok.