1 write to RedistFiles
Microsoft.Build.Tasks.Core (1)
GetSDKReferenceFiles.cs (1)
562
RedistFiles
= redistReferenceItems.ToArray();
136 references to RedistFiles
Microsoft.Build.Tasks.UnitTests (136)
GetSDKReference_Tests.cs (136)
246
t.
RedistFiles
.ShouldBeEmpty();
358
Assert.Empty(t.
RedistFiles
);
383
Assert.Empty(t.
RedistFiles
);
409
Assert.Empty(t.
RedistFiles
);
957
Assert.Equal(5, t.
RedistFiles
.Length);
959
engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[0].ItemSpec.Replace(t.
RedistFiles
[0].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[0].GetMetadata("TargetPath"));
960
engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[1].ItemSpec.Replace(t.
RedistFiles
[1].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[1].GetMetadata("TargetPath"));
961
engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[2].ItemSpec.Replace(t.
RedistFiles
[2].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[2].GetMetadata("TargetPath"));
962
engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[3].ItemSpec.Replace(t.
RedistFiles
[3].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[3].GetMetadata("TargetPath"));
963
engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[4].ItemSpec.Replace(t.
RedistFiles
[4].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[4].GetMetadata("TargetPath"));
965
Assert.Equal("A.dll", Path.GetFileName(t.
RedistFiles
[0].ItemSpec));
966
Assert.Equal("Super\\A.dll", t.
RedistFiles
[0].GetMetadata("TargetPath"), true);
967
Assert.Equal("SDkWithManifest, Version=2.0", t.
RedistFiles
[0].GetMetadata("OriginalItemSpec"), true);
968
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[0].GetMetadata("ResolvedFrom"), true);
969
Assert.Empty(t.
RedistFiles
[0].GetMetadata("Root"));
971
Assert.Equal("B.dll", Path.GetFileName(t.
RedistFiles
[1].ItemSpec), true);
972
Assert.Equal("Super\\ASubDirectory\\TwoDeep\\B.dll", t.
RedistFiles
[1].GetMetadata("TargetPath"), true);
973
Assert.Equal("SDkWithManifest, Version=2.0", t.
RedistFiles
[1].GetMetadata("OriginalItemSpec"), true);
974
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[1].GetMetadata("ResolvedFrom"), true);
975
Assert.Empty(t.
RedistFiles
[1].GetMetadata("Root"));
977
Assert.Equal("B.PRI", Path.GetFileName(t.
RedistFiles
[2].ItemSpec), true);
978
Assert.Equal("Super\\B.PRI", t.
RedistFiles
[2].GetMetadata("TargetPath"), true);
979
Assert.Equal("SDkWithManifest, Version=2.0", t.
RedistFiles
[2].GetMetadata("OriginalItemSpec"), true);
980
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[2].GetMetadata("ResolvedFrom"), true);
981
Assert.Equal("Super", t.
RedistFiles
[2].GetMetadata("Root"));
983
Assert.Equal("C.dll", Path.GetFileName(t.
RedistFiles
[3].ItemSpec), true);
984
Assert.Equal("Super\\C.dll", t.
RedistFiles
[3].GetMetadata("TargetPath"), true);
985
Assert.Equal("SDkWithManifest, Version=2.0", t.
RedistFiles
[3].GetMetadata("OriginalItemSpec"), true);
986
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[3].GetMetadata("ResolvedFrom"), true);
987
Assert.Empty(t.
RedistFiles
[3].GetMetadata("Root"));
989
Assert.Equal("D.dll", Path.GetFileName(t.
RedistFiles
[4].ItemSpec), true);
990
Assert.Equal("Super\\D.dll", t.
RedistFiles
[4].GetMetadata("TargetPath"), true);
991
Assert.Equal("SDkWithManifest, Version=2.0", t.
RedistFiles
[4].GetMetadata("OriginalItemSpec"), true);
992
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[4].GetMetadata("ResolvedFrom"), true);
993
Assert.Empty(t.
RedistFiles
[4].GetMetadata("Root"));
1018
Assert.Equal(5, t.
RedistFiles
.Length);
1020
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[0].ItemSpec.Replace(t.
RedistFiles
[0].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[0].GetMetadata("TargetPath"));
1021
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[1].ItemSpec.Replace(t.
RedistFiles
[1].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[1].GetMetadata("TargetPath"));
1022
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[2].ItemSpec.Replace(t.
RedistFiles
[2].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[2].GetMetadata("TargetPath"));
1023
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[3].ItemSpec.Replace(t.
RedistFiles
[3].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[3].GetMetadata("TargetPath"));
1024
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[4].ItemSpec.Replace(t.
RedistFiles
[4].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[4].GetMetadata("TargetPath"));
1049
Assert.Equal(5, t.
RedistFiles
.Length);
1051
Assert.True(t.
RedistFiles
[0].ItemSpec.IndexOf("x64", StringComparison.OrdinalIgnoreCase) > -1);
1052
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[0].ItemSpec.Replace(t.
RedistFiles
[0].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[0].GetMetadata("TargetPath"));
1053
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[1].ItemSpec.Replace(t.
RedistFiles
[1].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[1].GetMetadata("TargetPath"));
1054
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[2].ItemSpec.Replace(t.
RedistFiles
[2].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[2].GetMetadata("TargetPath"));
1055
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[3].ItemSpec.Replace(t.
RedistFiles
[3].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[3].GetMetadata("TargetPath"));
1056
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[4].ItemSpec.Replace(t.
RedistFiles
[4].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[4].GetMetadata("TargetPath"));
1081
Assert.Equal(5, t.
RedistFiles
.Length);
1083
Assert.True(t.
RedistFiles
[0].ItemSpec.IndexOf("x64", StringComparison.OrdinalIgnoreCase) > -1);
1084
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[0].ItemSpec.Replace(t.
RedistFiles
[0].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[0].GetMetadata("TargetPath"));
1085
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[1].ItemSpec.Replace(t.
RedistFiles
[1].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[1].GetMetadata("TargetPath"));
1086
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[2].ItemSpec.Replace(t.
RedistFiles
[2].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[2].GetMetadata("TargetPath"));
1087
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[3].ItemSpec.Replace(t.
RedistFiles
[3].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[3].GetMetadata("TargetPath"));
1088
engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.
RedistFiles
[4].ItemSpec.Replace(t.
RedistFiles
[4].GetMetadata("SDKRootPath"), String.Empty), t.
RedistFiles
[4].GetMetadata("TargetPath"));
1169
Assert.Equal(5, t.
RedistFiles
.Length);
1197
Assert.Equal(5, t.
RedistFiles
.Length);
1235
Assert.Equal(6, t.
RedistFiles
.Length);
1281
Assert.Equal(6, t.
RedistFiles
.Length);
1324
Assert.Equal(6, t.
RedistFiles
.Length);
1368
Assert.Equal(7, t.
RedistFiles
.Length);
1371
Assert.Equal("A.dll", Path.GetFileName(t.
RedistFiles
[0].ItemSpec), true);
1372
Assert.Equal("SDK1\\A.dll", t.
RedistFiles
[0].GetMetadata("TargetPath"), true);
1373
Assert.Equal("SDkWithManifest, Version=2.0", t.
RedistFiles
[0].GetMetadata("OriginalItemSpec"), true);
1374
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[0].GetMetadata("ResolvedFrom"), true);
1375
Assert.Empty(t.
RedistFiles
[0].GetMetadata("Root"));
1377
Assert.Equal("B.dll", Path.GetFileName(t.
RedistFiles
[1].ItemSpec), true);
1378
Assert.Equal("SDK2\\B.dll", t.
RedistFiles
[1].GetMetadata("TargetPath"), true);
1379
Assert.Equal("AnotherSDK, Version=2.0", t.
RedistFiles
[1].GetMetadata("OriginalItemSpec"), true);
1380
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[1].GetMetadata("ResolvedFrom"), true);
1381
Assert.Empty(t.
RedistFiles
[1].GetMetadata("Root"));
1383
Assert.Equal("B.dll", Path.GetFileName(t.
RedistFiles
[2].ItemSpec), true);
1384
Assert.Equal("SDK1\\ASubDirectory\\TwoDeep\\B.dll", t.
RedistFiles
[2].GetMetadata("TargetPath"), true);
1385
Assert.Equal("SDkWithManifest, Version=2.0", t.
RedistFiles
[2].GetMetadata("OriginalItemSpec"), true);
1386
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[2].GetMetadata("ResolvedFrom"), true);
1387
Assert.Empty(t.
RedistFiles
[2].GetMetadata("Root"));
1389
Assert.Equal("B.pri", Path.GetFileName(t.
RedistFiles
[3].ItemSpec), true);
1390
Assert.Equal("SDK2\\B.Pri", t.
RedistFiles
[3].GetMetadata("TargetPath"), true);
1391
Assert.Equal("AnotherSDK, Version=2.0", t.
RedistFiles
[3].GetMetadata("OriginalItemSpec"), true);
1392
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[3].GetMetadata("ResolvedFrom"), true);
1393
Assert.Equal("SDK2", t.
RedistFiles
[3].GetMetadata("Root"), true);
1395
Assert.Equal("B.PRI", Path.GetFileName(t.
RedistFiles
[4].ItemSpec), true);
1396
Assert.Equal("SDK1\\B.PRI", t.
RedistFiles
[4].GetMetadata("TargetPath"), true);
1397
Assert.Equal("SDkWithManifest, Version=2.0", t.
RedistFiles
[4].GetMetadata("OriginalItemSpec"), true);
1398
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[4].GetMetadata("ResolvedFrom"), true);
1399
Assert.Equal("SDK1", t.
RedistFiles
[4].GetMetadata("Root"), true);
1401
Assert.Equal("C.dll", Path.GetFileName(t.
RedistFiles
[5].ItemSpec), true);
1402
Assert.Equal("SDK1\\C.dll", t.
RedistFiles
[5].GetMetadata("TargetPath"), true);
1403
Assert.Equal("SDkWithManifest, Version=2.0", t.
RedistFiles
[5].GetMetadata("OriginalItemSpec"), true);
1404
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[5].GetMetadata("ResolvedFrom"), true);
1405
Assert.Empty(t.
RedistFiles
[5].GetMetadata("Root"));
1407
Assert.Equal("D.dll", Path.GetFileName(t.
RedistFiles
[6].ItemSpec), true);
1408
Assert.Equal("SDK1\\D.dll", t.
RedistFiles
[6].GetMetadata("TargetPath"), true);
1409
Assert.Equal("SDkWithManifest, Version=2.0", t.
RedistFiles
[6].GetMetadata("OriginalItemSpec"), true);
1410
Assert.Equal("GetSDKReferenceFiles", t.
RedistFiles
[6].GetMetadata("ResolvedFrom"), true);
1411
Assert.Empty(t.
RedistFiles
[6].GetMetadata("Root"));