1 write to AssignedProjectsWithPlatform
Microsoft.Build.Tasks.Core (1)
GetCompatiblePlatform.cs (1)
55AssignedProjectsWithPlatform = new ITaskItem[AnnotatedProjects.Length];
20 references to AssignedProjectsWithPlatform
Microsoft.Build.Tasks.Core (8)
GetCompatiblePlatform.cs (8)
58AssignedProjectsWithPlatform[i] = new TaskItem(AnnotatedProjects[i]); 60string referencedProjectPlatform = AssignedProjectsWithPlatform[i].GetMetadata("Platform"); 61string projectReferencePlatformsMetadata = AssignedProjectsWithPlatform[i].GetMetadata("Platforms"); 62string projectReferenceLookupTableMetadata = AssignedProjectsWithPlatform[i].GetMetadata("PlatformLookupTable"); 63string projectReferenceOverridePlatformNegotiationMetadata = AssignedProjectsWithPlatform[i].GetMetadata("OverridePlatformNegotiationValue"); 65string? buildProjectReferenceAs = PlatformNegotiation.GetNearestPlatform(projectReferenceOverridePlatformNegotiationMetadata, referencedProjectPlatform, projectReferencePlatformsMetadata, projectReferenceLookupTableMetadata, PlatformLookupTable, AssignedProjectsWithPlatform[i].ItemSpec, CurrentProjectPlatform, Log); 67AssignedProjectsWithPlatform[i].SetMetadata("NearestPlatform", buildProjectReferenceAs); 68Log.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.DisplayChosenPlatform", AssignedProjectsWithPlatform[i].ItemSpec, buildProjectReferenceAs);
Microsoft.Build.Tasks.UnitTests (12)
GetCompatiblePlatform_Tests.cs (12)
39task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe("x64"); 62task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(""); 86task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe("x86"); 107task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe("AnyCPU"); 129task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 151task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe("x86"); 172task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 195task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 220task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 246task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe("x86"); 270task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 293task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty);