So far I’ve always used xcopy in a pre or post build event to copy files between projects:
But did you know that you don’t need this and that it can be done by standard msbuild features? (By the way the code above doesn’t even work on Linux)
To achieve the same thing you can use the following msbuild configuration in your csproj file:
2 important things to notice:
- You can use file patterns in the 'Include' to specify a set of files
- You can use ‘LinkBase’ to specify a target folder