Set up a .NET Core/Standard solution with multiple projects such that they all build and publish into a centralized directory without polluting the source directory.
These setup steps should be followed before attempting to reproduce the issue using either method below.