11 references to SetMetadata
Microsoft.Build (11)
Construction\Solution\SolutionProjectGenerator.cs (8)
1128item.SetMetadata("ToolsVersion", GetToolsVersionMetadataForDirectMSBuildTask(traversalProject)); 1129item.SetMetadata("SkipNonexistentProjects", "False"); // Skip if it doesn't exist on disk. 1130item.SetMetadata("AdditionalProperties", GetPropertiesMetadataForProjectReference(traversalProject, GetConfigurationAndPlatformPropertiesString(projectConfiguration))); 1136item.SetMetadata("ToolsVersion", traversalProject.ToolsVersion); 1137item.SetMetadata("SkipNonexistentProjects", "Build"); // Instruct the MSBuild task to try to build even though the file doesn't exist on disk. 1138item.SetMetadata("AdditionalProperties", GetPropertiesMetadataForProjectReference(traversalProject, SolutionConfigurationAndPlatformProperties)); 1145item.SetMetadata("Configuration", projectConfiguration.ConfigurationName); 1146item.SetMetadata("Platform", projectConfiguration.PlatformName);
Graph\GraphBuilder.cs (1)
731mergedItem.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);