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