dotnet/buildtools — pull request #7 by ellismg (2014-11-13 22:48:25+00:00)
Title: Fix build break when System.Collections.Immutable is GAC'd.

In certain configurations the version of System.Collections.Immutable that Microsoft.DotNet.Build.Tasks references is also located in the GAC. One such example is having Visual Studio 2013 Community Edition + Visual Studio 2015 Preview installed on Windows 10 Technical Preview. I suspect (but have not confirmed) that the real issue is VS 2015 Preview, as I believe it is what causes the assembly to be GAC'd.

Because of this, ResolveAssemblyReferences will not copy System.Collections.Immutable into the output directory when build Microsoft.DotNet.Build.Tasks. Because of this, when we later go try to build the NuGet package for Microsoft.DotNet.Build.Tasks, we fail because the file is not present.

The fix is to mark this reference with the true metadata so that it is always copied to the output directory.