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