11 references to SetMetadata
Microsoft.Build (11)
Construction\Solution\SolutionProjectGenerator.cs (8)
1131item.SetMetadata("ToolsVersion", GetToolsVersionMetadataForDirectMSBuildTask(traversalProject)); 1132item.SetMetadata("SkipNonexistentProjects", "False"); // Skip if it doesn't exist on disk. 1133item.SetMetadata("AdditionalProperties", GetPropertiesMetadataForProjectReference(traversalProject, GetConfigurationAndPlatformPropertiesString(projectConfiguration))); 1139item.SetMetadata("ToolsVersion", traversalProject.ToolsVersion); 1140item.SetMetadata("SkipNonexistentProjects", "Build"); // Instruct the MSBuild task to try to build even though the file doesn't exist on disk. 1141item.SetMetadata("AdditionalProperties", GetPropertiesMetadataForProjectReference(traversalProject, SolutionConfigurationAndPlatformProperties)); 1148item.SetMetadata("Configuration", projectConfiguration.ConfigurationName); 1149item.SetMetadata("Platform", projectConfiguration.PlatformName);
Graph\GraphBuilder.cs (1)
745mergedItem.SetMetadata(ItemMetadataNames.ProjectReferenceTargetsMetadataName, $"{existingTargetsMetadata};{newTargetsMetadata}");
Instance\ProjectItemInstance.cs (2)
248/// This is a read-only collection. To modify the metadata, use <see cref="SetMetadata(string, string)"/>. 472return SetMetadata(metadataElement.Name, evaluatedInclude);