We have our solution set up so that Project A References Project B, Project B references Project C, and Project C has a .NET wrapper that references native DLLs.
A -> B -> C -> Native DLLs via .NET Wrapper
The reason for the convolution is we are dealing with 3rd party hardware, or we would reference the DLLs straight from project B. Anyway --
We are trying to get some files (native DLLs) that are referenced in project C, copied over to project A. Copy local with build action of "Content" does not work because MSBuild will fail saying that it cannot overwrite the files as once they start they launch, the processes do not clean up after themselves and remain running.
Is it possible to have MSBuild attempt to kill processes before building?
OR
Is it possible to conditionally copy the native DLLs from project B to project A if they do not exist with MSBuild? Project A's bin folder is where they launch from, and this is where the build fails (not from project C to B).