Allow copy-local ReferenceFromRuntime
authorEric St. John <ericstj@microsoft.com>
Fri, 8 Sep 2017 17:47:47 +0000 (10:47 -0700)
committerEric St. John <ericstj@microsoft.com>
Tue, 12 Sep 2017 15:30:27 +0000 (08:30 -0700)
commit48bd823c12d0f67567a1c9b154d1241006840ee7
tree28922a2e9716ff581d7b26e5f49c130c803f3fd1
parent9c7d6e11984a19a58b6e21bc2eb9ddb5bcf5602c
Allow copy-local ReferenceFromRuntime

Tests may want to copy a ReferenceFromRuntime to the test output directory.

To do this, a test can set Private=true (same as you would for a Reference).

By default we don't do this, because anything in the runtime folder will be
part of the shared framework that the test runs on.

In the case of Microsoft.XmlSerializer.Generator it's reference is an
application and the project expects this to be next to the test assembly.

Commit migrated from https://github.com/dotnet/corefx/commit/a938b3b95063b442981078b9d11ff66296daf51f
src/libraries/Microsoft.XmlSerializer.Generator/tests/Microsoft.XmlSerializer.Generator.Tests.csproj
src/libraries/referenceFromRuntime.targets