Multiple DLLs from referenced .NET Standard projects

I found the following solution:

The ClockProject requires the MainProject and the TimeProject.

If I reference only the TimeProject in the ClockProject then it works (because the TimeProject references the MainProject), but the MainProject.dll is copied to the ClockProject Output folder, which I do not want.

However, if I reference BOTH projects in the ClockProject, the Main- and TimeProject and set both to CopyLocal = false, then only the ClockProject.dll will be copied into the Output folder of the ClockProject.


For projects like this I go to each project properties and set a Common Output directory. That way all of the projects dump their builds into one directory.

Since that is not possible, in your references select the MainProject.dll reference, look at the properties and set Copy Local to False.