11 references to SetMetadata
Microsoft.Build (11)
Construction\Solution\SolutionProjectGenerator.cs (8)
1123item.SetMetadata("ToolsVersion", GetToolsVersionMetadataForDirectMSBuildTask(traversalProject)); 1124item.SetMetadata("SkipNonexistentProjects", "False"); // Skip if it doesn't exist on disk. 1125item.SetMetadata("AdditionalProperties", GetPropertiesMetadataForProjectReference(traversalProject, GetConfigurationAndPlatformPropertiesString(projectConfiguration))); 1131item.SetMetadata("ToolsVersion", traversalProject.ToolsVersion); 1132item.SetMetadata("SkipNonexistentProjects", "Build"); // Instruct the MSBuild task to try to build even though the file doesn't exist on disk. 1133item.SetMetadata("AdditionalProperties", GetPropertiesMetadataForProjectReference(traversalProject, SolutionConfigurationAndPlatformProperties)); 1140item.SetMetadata("Configuration", projectConfiguration.ConfigurationName); 1141item.SetMetadata("Platform", projectConfiguration.PlatformName);
Graph\GraphBuilder.cs (1)
730mergedItem.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);