1 write to References
Microsoft.Build.Tasks.Core (1)
GetSDKReferenceFiles.cs (1)
533References = resolvedReferenceAssemblies.ToArray();
191 references to References
Microsoft.Build.Tasks.UnitTests (191)
GetSDKReference_Tests.cs (191)
245t.References.ShouldBeEmpty(); 357Assert.Empty(t.References); 382Assert.Empty(t.References); 408Assert.Empty(t.References); 433Assert.Equal(8, t.References.Length); 437Assert.Equal(winmd, t.References[0].ItemSpec, true); 438Assert.Equal("A.winmd", Path.GetFileName(t.References[0].ItemSpec), true); 439Assert.Equal("WindowsRuntime 1.0;CLR V2.0.50727", t.References[0].GetMetadata("ImageRuntime"), true); 440Assert.Equal("A, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[0].GetMetadata("FusionName"), true); 441Assert.Equal("true", t.References[0].GetMetadata("WinMDFile"), true); 442Assert.Equal("Managed", t.References[0].GetMetadata("WinMDFileType"), true); 443Assert.Equal("true", t.References[0].GetMetadata("CopyLocal"), true); 444Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 445Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 447Assert.Equal("E.dll", Path.GetFileName(t.References[4].ItemSpec), true); 448Assert.Equal("CLR V2.0.50727", t.References[4].GetMetadata("ImageRuntime"), true); 449Assert.Equal("E, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[4].GetMetadata("FusionName"), true); 450Assert.Equal("false", t.References[4].GetMetadata("WinMDFile"), true); 451Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 452Assert.Equal("true", t.References[4].GetMetadata("CopyLocal"), true); 453Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 454Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 508Assert.Equal(8, t.References.Length); 519Assert.Equal(8, t.References.Length); 530Assert.Empty(t.References); 557Assert.Equal(8, t.References.Length); 559Assert.Equal("A.winmd", Path.GetFileName(t.References[0].ItemSpec), true); 560Assert.Equal("WindowsRuntime 1.0;CLR V2.0.50727", t.References[0].GetMetadata("ImageRuntime"), true); 561Assert.Equal("A, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[0].GetMetadata("FusionName"), true); 562Assert.Equal("true", t.References[0].GetMetadata("WinMDFile"), true); 563Assert.Equal("Managed", t.References[0].GetMetadata("WinMDFileType"), true); 564Assert.Equal("false", t.References[0].GetMetadata("CopyLocal"), true); 565Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 566Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 568Assert.Equal("B.winmd", Path.GetFileName(t.References[1].ItemSpec), true); 569Assert.Equal("WindowsRuntime 1.0", t.References[1].GetMetadata("ImageRuntime"), true); 570Assert.Equal("B, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[1].GetMetadata("FusionName"), true); 571Assert.Equal("true", t.References[1].GetMetadata("WinMDFile"), true); 572Assert.Equal("Native", t.References[1].GetMetadata("WinMDFileType"), true); 573Assert.Equal("false", t.References[1].GetMetadata("CopyLocal"), true); 574Assert.Equal("SDkWithManifest, Version=2.0", t.References[1].GetMetadata("OriginalItemSpec"), true); 575Assert.Equal("GetSDKReferenceFiles", t.References[1].GetMetadata("ResolvedFrom"), true); 577Assert.Equal("E.dll", Path.GetFileName(t.References[4].ItemSpec), true); 578Assert.Equal("CLR V2.0.50727", t.References[4].GetMetadata("ImageRuntime"), true); 579Assert.Equal("E, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[4].GetMetadata("FusionName"), true); 580Assert.Equal("false", t.References[4].GetMetadata("WinMDFile"), true); 581Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 582Assert.Equal("false", t.References[4].GetMetadata("CopyLocal"), true); 583Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 584Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 608ITaskItem[] references1 = t.References; 631ITaskItem[] references2 = t2.References; 675Assert.Equal(8, t.References.Length); 677engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 678engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 679engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 680engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 681engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 682engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 683engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 684engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 686Assert.Equal("A.winmd", Path.GetFileName(t.References[0].ItemSpec)); 687Assert.Equal("true", t.References[0].GetMetadata("WinMDFile")); 688Assert.Equal("Managed", t.References[0].GetMetadata("WinMDFileType")); 689Assert.Equal("false", t.References[0].GetMetadata("CopyLocal")); 690Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 691Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 693Assert.Equal("E.dll", Path.GetFileName(t.References[4].ItemSpec)); 694Assert.Equal("false", t.References[4].GetMetadata("WinMDFile")); 695Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 696Assert.Equal("false", t.References[4].GetMetadata("CopyLocal")); 697Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 698Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 724Assert.Equal(5, t.References.Length); 726engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 727engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 728engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 729engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 730engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 732Assert.Equal("A.dll", Path.GetFileName(t.References[0].ItemSpec), true); 733Assert.Equal("false", t.References[0].GetMetadata("WinMDFile"), true); 734Assert.Empty(t.References[0].GetMetadata("WinMDFileType")); 735Assert.Equal("false", t.References[0].GetMetadata("CopyLocal"), true); 736Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 737Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 739Assert.Equal("h.dll", Path.GetFileName(t.References[4].ItemSpec), true); 740Assert.Equal("false", t.References[4].GetMetadata("WinMDFile"), true); 741Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 742Assert.Equal("false", t.References[4].GetMetadata("CopyLocal"), true); 743Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 744Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 816Assert.Equal(8, t.References.Length); 818engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 819engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 820engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 821engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 822engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 823engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 824engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 825engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 827Assert.True(t.References[0].ItemSpec.IndexOf("x64", StringComparison.OrdinalIgnoreCase) > -1); 828Assert.Equal("A.winmd", Path.GetFileName(t.References[0].ItemSpec)); 829Assert.Equal("SDKWithManifest, Version=2.0", t.References[0].GetMetadata("ReferenceGrouping")); 830Assert.Empty(t.References[0].GetMetadata("ReferenceGroupingDisplayName")); 831Assert.Equal("true", t.References[0].GetMetadata("WinMDFile")); 832Assert.Equal("Managed", t.References[0].GetMetadata("WinMDFileType")); 833Assert.Equal("false", t.References[0].GetMetadata("CopyLocal")); 834Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 835Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 837Assert.Equal("E.dll", Path.GetFileName(t.References[4].ItemSpec)); 838Assert.Equal("false", t.References[4].GetMetadata("WinMDFile")); 839Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 840Assert.Equal("false", t.References[4].GetMetadata("CopyLocal")); 841Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 842Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 868Assert.Equal(8, t.References.Length); 870engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 871engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 872engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 873engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 874engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 875engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 876engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 877engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 879Assert.True(t.References[0].ItemSpec.IndexOf("x64", StringComparison.OrdinalIgnoreCase) > -1); 880Assert.Equal("A.winmd", Path.GetFileName(t.References[0].ItemSpec)); 881Assert.Equal("true", t.References[0].GetMetadata("WinMDFile")); 882Assert.Equal("SDKWithManifest, Version=2.0", t.References[0].GetMetadata("ReferenceGrouping")); 883Assert.Equal("Managed", t.References[0].GetMetadata("WinMDFileType")); 884Assert.Equal("SDKWithManifestDisplayName", t.References[0].GetMetadata("ReferenceGroupingDisplayName")); 885Assert.Equal("false", t.References[0].GetMetadata("CopyLocal")); 886Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 887Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 889Assert.Equal("E.dll", Path.GetFileName(t.References[4].ItemSpec)); 890Assert.Equal("false", t.References[4].GetMetadata("WinMDFile")); 891Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 892Assert.Equal("false", t.References[4].GetMetadata("CopyLocal")); 893Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 894Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 919Assert.Equal(8, t.References.Length); 921engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 922engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 923engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 924engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 925engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 926engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 927engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 928engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 956Assert.Equal(8, t.References.Length); 1112Assert.Equal(8, t.References.Length); 1141Assert.Equal(8, t.References.Length); 1234Assert.Equal(8, t.References.Length); 1280Assert.Equal(8, t.References.Length); 1323Assert.Equal(8, t.References.Length);