1 write to AssignedProjectsWithPlatform
Microsoft.Build.Tasks.Core (1)
GetCompatiblePlatform.cs (1)
54
AssignedProjectsWithPlatform
= new ITaskItem[AnnotatedProjects.Length];
20 references to AssignedProjectsWithPlatform
Microsoft.Build.Tasks.Core (8)
GetCompatiblePlatform.cs (8)
57
AssignedProjectsWithPlatform
[i] = new TaskItem(AnnotatedProjects[i]);
59
string referencedProjectPlatform =
AssignedProjectsWithPlatform
[i].GetMetadata("Platform");
60
string projectReferencePlatformsMetadata =
AssignedProjectsWithPlatform
[i].GetMetadata("Platforms");
61
string projectReferenceLookupTableMetadata =
AssignedProjectsWithPlatform
[i].GetMetadata("PlatformLookupTable");
62
string projectReferenceOverridePlatformNegotiationMetadata =
AssignedProjectsWithPlatform
[i].GetMetadata("OverridePlatformNegotiationValue");
64
string? buildProjectReferenceAs = PlatformNegotiation.GetNearestPlatform(projectReferenceOverridePlatformNegotiationMetadata, referencedProjectPlatform, projectReferencePlatformsMetadata, projectReferenceLookupTableMetadata, PlatformLookupTable,
AssignedProjectsWithPlatform
[i].ItemSpec, CurrentProjectPlatform, Log);
66
AssignedProjectsWithPlatform
[i].SetMetadata("NearestPlatform", buildProjectReferenceAs);
67
Log.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.DisplayChosenPlatform",
AssignedProjectsWithPlatform
[i].ItemSpec, buildProjectReferenceAs);
Microsoft.Build.Tasks.UnitTests (12)
GetCompatiblePlatform_Tests.cs (12)
40
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe("x64");
63
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe("");
87
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe("x86");
108
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe("AnyCPU");
130
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty);
152
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe("x86");
173
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty);
196
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty);
221
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty);
247
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe("x86");
271
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty);
294
task.
AssignedProjectsWithPlatform
[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty);