13 implementations of SetMetadata
Microsoft.Build (3)
Instance\ProjectItemInstance.cs (2)
490void ITaskItem.SetMetadata(string metadataName, string metadataValue) 1358public void SetMetadata(string metadataName, string metadataValueEscaped)
TaskParameter.cs (1)
846public void SetMetadata(string metadataName, string metadataValue)
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TaskRegistry_Tests.cs (1)
2297public void SetMetadata(string metadataName, string metadataValue)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
65public void SetMetadata(string metadataName, string metadataValue) => throw new NotImplementedException();
MockTask.cs (1)
448public void SetMetadata(string attributeName, string attributeValue)
TaskThatReturnsMinimalItem.cs (1)
46public void SetMetadata(string metadataName, string metadataValue) => throw new NotImplementedException();
Microsoft.Build.Framework (1)
TaskItemData.cs (1)
83public void SetMetadata(string metadataName, string metadataValue)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TestUtilities\SimpleTaskItem.cs (1)
38public void SetMetadata(string metadataName, string metadataValue)
Microsoft.Build.Tasks.UnitTests (1)
GenerateBindingRedirects_Tests.cs (1)
399void ITaskItem.SetMetadata(string metadataName, string metadataValue)
Microsoft.Build.Utilities.Core (1)
TaskItem.cs (1)
261public void SetMetadata(
MSBuild (1)
TaskParameter.cs (1)
846public void SetMetadata(string metadataName, string metadataValue)
MSBuildTaskHost (1)
TaskParameter.cs (1)
846public void SetMetadata(string metadataName, string metadataValue)
464 references to SetMetadata
Crossgen2Tasks (8)
PrepareForReadyToRunCompilation.cs (1)
233MainAssembly.SetMetadata(MetadataKeys.RelativePath, Path.GetFileName(MainAssembly.ItemSpec));
ResolveReadyToRunCompilers.cs (7)
125CrossgenTool.SetMetadata(MetadataKeys.JitPath, _crossgenTool.ClrJitPath); 128CrossgenTool.SetMetadata(MetadataKeys.DiaSymReader, _crossgenTool.DiaSymReaderPath); 169Crossgen2Tool.SetMetadata(MetadataKeys.IsVersion5, version5.ToString()); 172Crossgen2Tool.SetMetadata(MetadataKeys.JitPath, _crossgen2Tool.ClrJitPath); 176Crossgen2Tool.SetMetadata(MetadataKeys.TargetOS, targetOS); 177Crossgen2Tool.SetMetadata(MetadataKeys.TargetArch, ArchitectureToString(_targetArchitecture)); 180Crossgen2Tool.SetMetadata(MetadataKeys.PerfmapFormatVersion, PerfmapFormatVersion);
Microsoft.Build (6)
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (2)
706outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceProjectFile, projects[i].GetMetadata(FileUtilities.ItemSpecModifiers.FullPath)); 713outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceTargetName, targetName);
Instance\ProjectItemInstance.cs (2)
1474destinationItem.SetMetadata(metadatum.Name, GetMetadataEscaped(metadatum.Name)); 1484destinationItem.SetMetadata("OriginalItemSpec", _includeEscaped);
TaskParameter.cs (2)
902destinationItem.SetMetadata(entry.Key, entry.Value); 909destinationItem.SetMetadata("OriginalItemSpec", EscapingUtilities.Escape(ItemSpec));
Microsoft.Build.Engine.OM.UnitTests (1)
Instance\ProjectItemInstance_Tests.cs (1)
334taskItem.SetMetadata("m", "m2");
Microsoft.Build.Engine.UnitTests (2)
ConsoleLogger_Tests.cs (1)
1673taskItem3.SetMetadata("f)oo", "%21%40%23");
Definition\ItemDefinitionGroup_Tests.cs (1)
639noMetaItem.SetMetadata("MetaA", "NEWMETA_A");
Microsoft.Build.Framework (1)
IMetadataContainer.cs (1)
26/// <see cref="ITaskItem.SetMetadata"/> on all metadata, but takes
Microsoft.Build.Tasks.CodeAnalysis (3)
MapSourceRoots.cs (3)
145root.SetMetadata(Names.MappedPath, mappedPath); 177root.SetMetadata(Names.MappedPath, mappedTopLevelPath + EnsureEndsWithSlash(nestedRoot.Replace('\\', '/'))); 190root.SetMetadata(Names.MappedPath, root.ItemSpec);
Microsoft.Build.Tasks.Core (77)
AssemblyDependency\GenerateBindingRedirects.cs (1)
132OutputAppConfigFile.SetMetadata(ItemMetadataNames.targetPath, TargetName);
AssemblyDependency\ReferenceTable.cs (1)
2761item.SetMetadata(ItemMetadataNames.destinationSubDirectory, FileUtilities.EnsureTrailingSlash(Path.GetDirectoryName(satelliteFile)));
AssemblyDependency\ResolveAssemblyReference.cs (1)
3005suggestedRedirect.SetMetadata("MaxVersion", idealRemapping.BindingRedirects[j].NewVersion.ToString());
AssignCulture.cs (4)
147AssignedFiles[i].SetMetadata(ItemMetadataNames.withCulture, "true"); 163AssignedFiles[i].SetMetadata(ItemMetadataNames.culture, info.culture); 164AssignedFiles[i].SetMetadata(ItemMetadataNames.withCulture, "true"); 170AssignedFiles[i].SetMetadata(ItemMetadataNames.withCulture, "false");
AssignLinkMetadata.cs (1)
58outputItem.SetMetadata("Link", link);
AssignProjectConfiguration.cs (9)
226projectRef.SetMetadata("GlobalPropertiesToRemove", EscapingUtilities.Escape(globalPropertiesToRemove + "Configuration;Platform")); 305resolvedProjectWithConfiguration.SetMetadata(attrFullConfiguration, projectConfiguration); 308resolvedProjectWithConfiguration.SetMetadata(attrSetConfiguration, "Configuration=" + configurationPlatformParts[0]); 309resolvedProjectWithConfiguration.SetMetadata(attrConfiguration, configurationPlatformParts[0]); 313resolvedProjectWithConfiguration.SetMetadata(attrSetPlatform, "Platform=" + configurationPlatformParts[1]); 314resolvedProjectWithConfiguration.SetMetadata(attrPlatform, configurationPlatformParts[1]); 318resolvedProjectWithConfiguration.SetMetadata(attrSetPlatform, "Platform="); 352resolvedProjectWithConfiguration.SetMetadata(buildReferenceMetadataName, "false"); 357resolvedProjectWithConfiguration.SetMetadata(referenceOutputAssemblyMetadataName, "false");
AssignTargetPath.cs (1)
122AssignedFiles[i].SetMetadata(ItemMetadataNames.targetPath, EscapingUtilities.Escape(targetPath));
CreateItem.cs (1)
126newItem.SetMetadata(nameAndValue.Key, nameAndValue.Value);
CreateManifestResourceName.cs (2)
229ResourceFilesWithManifestResourceNames[i].SetMetadata("ManifestResourceName", manifestName); 237ResourceFilesWithManifestResourceNames[i].SetMetadata("LogicalName", manifestName);
FileIO\GetFileHash.cs (2)
101file.SetMetadata("FileHashAlgorithm", Algorithm); 102file.SetMetadata(MetadataName, encodedHash);
FindAppConfigFile.cs (2)
133AppConfigFile.SetMetadata("OriginalItemSpec", item.ItemSpec); 135AppConfigFile.SetMetadata(ItemMetadataNames.targetPath, TargetPath);
GenerateLauncher.cs (1)
102OutputEntryPoint.SetMetadata(ItemMetadataNames.targetPath, results.KeyFile);
GenerateResource.cs (2)
2709newOutputFile.SetMetadata("ResourceIndexName", reader.assemblySimpleName); 2713newOutputFile.SetMetadata("NeutralResourceLanguage", reader.cultureName);
GetAssemblyIdentity.cs (4)
78newItem.SetMetadata("Name", an.Name); 81newItem.SetMetadata("Version", an.Version.ToString()); 86newItem.SetMetadata("PublicKeyToken", ByteArrayToHex(an.GetPublicKeyToken())); 91newItem.SetMetadata("Culture", an.CultureInfo.ToString());
GetCompatiblePlatform.cs (1)
66AssignedProjectsWithPlatform[i].SetMetadata("NearestPlatform", buildProjectReferenceAs);
MSBuild.cs (2)
654outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceProjectFile, projects[i].GetMetadata(FileUtilities.ItemSpecModifiers.FullPath)); 661outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceTargetName, targetName);
ResolveManifestFiles.cs (14)
261outputItem.SetMetadata("DependencyType", "Install"); 266outputItem.SetMetadata(ItemMetadataNames.targetPath, targetPath); 269outputItem.SetMetadata("Group", group); 274outputItem.SetMetadata("IncludeHash", includeHash); 305outputItem.SetMetadata(ItemMetadataNames.targetPath, targetPath); 308outputItem.SetMetadata("Group", group); 313outputItem.SetMetadata("IncludeHash", includeHash); 316outputItem.SetMetadata("IsDataFile", isDataFile.ToString().ToLowerInvariant()); 325outputItem.SetMetadata("DependencyType", "Prerequisite"); 350item.SetMetadata("Culture", itemCulture); 403item.SetMetadata("Culture", identity.Culture); 413item.SetMetadata("AssemblyType", "Managed"); 425item.SetMetadata("AssemblyType", "Native"); 606item.SetMetadata("AssemblyType", "Satellite");
ResolveNonMSBuildProjectOutput.cs (1)
116resolvedPath.SetMetadata("ManagedAssembly", "true");
ResolveSDKReference.cs (27)
486referenceItem.ResolvedItem.SetMetadata(metadataName, metadataValue); 924ResolvedItem.SetMetadata(GetInstalledSDKLocations.DirectoryRootsMetadataName, sdk.GetMetadata(GetInstalledSDKLocations.DirectoryRootsMetadataName)); 925ResolvedItem.SetMetadata(GetInstalledSDKLocations.ExtensionDirectoryRootsMetadataName, sdk.GetMetadata(GetInstalledSDKLocations.ExtensionDirectoryRootsMetadataName)); 926ResolvedItem.SetMetadata(GetInstalledSDKLocations.RegistryRootMetadataName, sdk.GetMetadata(GetInstalledSDKLocations.RegistryRootMetadataName)); 1171ResolvedItem.SetMetadata("SDKName", SDKName); 1175ResolvedItem.SetMetadata(SDKManifest.Attributes.ProductFamilyName, ProductFamilyName); 1181ResolvedItem.SetMetadata("SupportsMultipleVersions", _supportsMultipleVersions.ToString()); 1202ResolvedItem.SetMetadata(TargetedSDKConfiguration, sdkConfiguration); 1203ResolvedItem.SetMetadata(TargetedSDKArchitecture, sdkArchitecture); 1315ResolvedItem.SetMetadata(SDKManifest.Attributes.FrameworkIdentity, FrameworkIdentity); 1332ResolvedItem.SetMetadata(SDKManifest.Attributes.PlatformIdentity, PlatformIdentity); 1421ResolvedItem.SetMetadata(SDKManifest.Attributes.AppxLocation, AppxLocation); 1434ResolvedItem.SetMetadata("SimpleName", SimpleName); 1435ResolvedItem.SetMetadata("Version", Version); 1447ResolvedItem.SetMetadata(SDKManifest.Attributes.SDKType, SDKType.ToString()); 1452ResolvedItem.SetMetadata(SDKManifest.Attributes.DisplayName, DisplayName); 1463ResolvedItem.SetMetadata(SDKManifest.Attributes.ExpandReferenceAssemblies, "false"); 1467ResolvedItem.SetMetadata(SDKManifest.Attributes.ExpandReferenceAssemblies, "true"); 1475ResolvedItem.SetMetadata(SDKManifest.Attributes.CopyRedist, "false"); 1479ResolvedItem.SetMetadata(SDKManifest.Attributes.CopyRedist, "true"); 1487ResolvedItem.SetMetadata(SDKManifest.Attributes.CopyLocalExpandedReferenceAssemblies, "false"); 1491ResolvedItem.SetMetadata(SDKManifest.Attributes.CopyLocalExpandedReferenceAssemblies, "true"); 1497ResolvedItem.SetMetadata(SDKManifest.Attributes.CopyRedistToSubDirectory, CopyRedistToSubDirectory); 1502ResolvedItem.SetMetadata(SDKManifest.Attributes.MaxPlatformVersion, MaxPlatformVersion); 1507ResolvedItem.SetMetadata(SDKManifest.Attributes.MinOSVersion, MinOSVersion); 1512ResolvedItem.SetMetadata(SDKManifest.Attributes.MaxOSVersionTested, MaxOSVersionTested); 1517ResolvedItem.SetMetadata(SDKManifest.Attributes.MoreInfo, MoreInfo);
Microsoft.Build.Tasks.UnitTests (305)
AssignCulture_Tests.cs (6)
46i.SetMetadata("Culture", "en-GB"); 68i.SetMetadata("Culture", "invalid"); // Bogus culture. 89i.SetMetadata("MyAttribute", "My Random String"); 172i.SetMetadata("DependentUpon", "MyResourcE.fr.vb"); 274i.SetMetadata("Culture", "en-GB"); 295i.SetMetadata("Culture", "");
CombinePath_Tests.cs (1)
144t.Paths[0].SetMetadata("Culture", "english");
Copy_Tests.cs (4)
1605i1.SetMetadata("Locale", "en-GB"); 1606i1.SetMetadata("Color", "taupe"); 1610o1.SetMetadata("Locale", "fr"); 1611o1.SetMetadata("Flavor", "Pumpkin");
CreateCSharpManifestResourceName_Tests.cs (17)
363i.SetMetadata("BuildAction", "EmbeddedResource"); 364i.SetMetadata("DependentUpon", "SR1.strings"); // Normally, this would be a C# file. 390i.SetMetadata("BuildAction", "EmbeddedResource"); 426i.SetMetadata("BuildAction", "EmbeddedResource"); 429i.SetMetadata("Type", "Non-Resx"); 463i.SetMetadata("BuildAction", "EmbeddedResource"); 493i.SetMetadata("BuildAction", "EmbeddedResource"); 528i.SetMetadata("BuildAction", "EmbeddedResource"); 529i.SetMetadata("DependentUpon", "SR2.cs"); 558i.SetMetadata("BuildAction", "EmbeddedResource"); 593i.SetMetadata("BuildAction", "EmbeddedResource"); 596i.SetMetadata("WithCulture", "true"); 597i.SetMetadata("Culture", "de"); 823i.SetMetadata("Type", "Non-Resx"); 848i.SetMetadata("LogicalName", "foo"); 849i.SetMetadata("Type", "Non-Resx"); 874i.SetMetadata("Type", "Resx");
Delete_Tests.cs (1)
30i.SetMetadata("Locale", "en-GB");
FindAppConfigFile_Tests.cs (2)
87item1.SetMetadata("id", "1"); 89item2.SetMetadata("id", "2");
FindInList_Tests.cs (4)
59item1.SetMetadata("id", "1"); 61item2.SetMetadata("id", "2"); 79item1.SetMetadata("id", "1"); 81item2.SetMetadata("id", "2");
GetSDKReference_Tests.cs (152)
231item.SetMetadata("ExpandReferenceAssemblies", "true"); 232item.SetMetadata("TargetedSDKConfiguration", "Retail"); 233item.SetMetadata("TargetedSDKArchitecture", "x86"); 234item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 373item.SetMetadata("ExpandReferenceAssemblies", "false"); 374item.SetMetadata("TargetedSDKConfiguration", "Retail"); 375item.SetMetadata("TargetedSDKArchitecture", "x86"); 376item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 398item.SetMetadata("TargetedSDKConfiguration", "Retail"); 399item.SetMetadata("TargetedSDKArchitecture", "x86"); 400item.SetMetadata("ExpandReferenceAssemblies", "false"); 401item.SetMetadata("CopyRedist", "false"); 402item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 423item.SetMetadata("ExpandReferenceAssemblies", "true"); 424item.SetMetadata("TargetedSDKConfiguration", "Retail"); 425item.SetMetadata("TargetedSDKArchitecture", "x86"); 426item.SetMetadata("CopyLocalExpandedReferenceAssemblies", "true"); 427item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 489item1.SetMetadata("ExpandReferenceAssemblies", "true"); 490item1.SetMetadata("TargetedSDKConfiguration", "Retail"); 491item1.SetMetadata("TargetedSDKArchitecture", "x86"); 492item1.SetMetadata("CopyLocalExpandedReferenceAssemblies", "false"); 493item1.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 496item2.SetMetadata("ExpandReferenceAssemblies", "true"); 497item2.SetMetadata("TargetedSDKConfiguration", "Retail"); 498item2.SetMetadata("TargetedSDKArchitecture", "x86"); 499item2.SetMetadata("CopyLocalExpandedReferenceAssemblies", "false"); 500item2.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 501item2.SetMetadata("RuntimeReferenceOnly", "true"); 547item.SetMetadata("ExpandReferenceAssemblies", "true"); 548item.SetMetadata("TargetedSDKConfiguration", "Retail"); 549item.SetMetadata("TargetedSDKArchitecture", "x86"); 550item.SetMetadata("CopyLocalExpandedReferenceAssemblies", "false"); 551item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 600item.SetMetadata("ExpandReferenceAssemblies", "true"); 601item.SetMetadata("TargetedSDKConfiguration", "Retail"); 602item.SetMetadata("TargetedSDKArchitecture", "x86"); 603item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 624item2.SetMetadata("ExpandReferenceAssemblies", "true"); 625item2.SetMetadata("TargetedSDKConfiguration", "Retail"); 626item2.SetMetadata("TargetedSDKArchitecture", "x86"); 627item2.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 666item.SetMetadata("ExpandReferenceAssemblies", "true"); 667item.SetMetadata("TargetedSDKConfiguration", "Retail"); 668item.SetMetadata("TargetedSDKArchitecture", "x86"); 669item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 714item.SetMetadata("ExpandReferenceAssemblies", "true"); 715item.SetMetadata("TargetedSDKConfiguration", "Retail"); 716item.SetMetadata("TargetedSDKArchitecture", "x86"); 717item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 759item.SetMetadata("ExpandReferenceAssemblies", "true"); 760item.SetMetadata("TargetedSDKConfiguration", ""); 761item.SetMetadata("TargetedSDKArchitecture", "amd64"); 762item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 782item.SetMetadata("ExpandReferenceAssemblies", "true"); 783item.SetMetadata("TargetedSDKConfiguration", "Debug"); 784item.SetMetadata("TargetedSDKArchitecture", ""); 785item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 807item.SetMetadata("ExpandReferenceAssemblies", "true"); 808item.SetMetadata("TargetedSDKConfiguration", "Retail"); 809item.SetMetadata("TargetedSDKArchitecture", "amd64"); 810item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 858item.SetMetadata("ExpandReferenceAssemblies", "true"); 859item.SetMetadata("TargetedSDKConfiguration", "Retail"); 860item.SetMetadata("TargetedSDKArchitecture", "x64"); 861item.SetMetadata("DisplayName", "SDKWithManifestDisplayName"); 862item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 909item.SetMetadata("ExpandReferenceAssemblies", "true"); 910item.SetMetadata("TargetedSDKConfiguration", "Retail"); 911item.SetMetadata("TargetedSDKArchitecture", "x86"); 912item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 944item.SetMetadata("ExpandReferenceAssemblies", "true"); 945item.SetMetadata("TargetedSDKConfiguration", "Retail"); 946item.SetMetadata("TargetedSDKArchitecture", "x86"); 947item.SetMetadata("CopyRedist", "true"); 948item.SetMetadata("CopyRedistToSubDirectory", "Super"); 949item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1009item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1010item.SetMetadata("TargetedSDKArchitecture", "x86"); 1011item.SetMetadata("CopyRedist", "true"); 1012item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1040item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1041item.SetMetadata("TargetedSDKArchitecture", "x64"); 1042item.SetMetadata("CopyRedist", "true"); 1043item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1072item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1073item.SetMetadata("TargetedSDKArchitecture", "amd64"); 1074item.SetMetadata("CopyRedist", "true"); 1075item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1103item.SetMetadata("ExpandReferenceAssemblies", "true"); 1104item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1105item.SetMetadata("TargetedSDKArchitecture", "x86"); 1106item.SetMetadata("CopyRedist", "false"); 1107item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1131item.SetMetadata("ExpandReferenceAssemblies", "true"); 1132item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1133item.SetMetadata("TargetedSDKArchitecture", "x86"); 1134item.SetMetadata("CopyRedist", "false"); 1135item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1160item.SetMetadata("ExpandReferenceAssemblies", "false"); 1161item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1162item.SetMetadata("TargetedSDKArchitecture", "x86"); 1163item.SetMetadata("CopyRedist", "true"); 1164item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1187item.SetMetadata("ExpandReferenceAssemblies", "false"); 1188item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1189item.SetMetadata("TargetedSDKArchitecture", "x86"); 1190item.SetMetadata("CopyRedist", "true"); 1191item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1215item.SetMetadata("ExpandReferenceAssemblies", "true"); 1216item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1217item.SetMetadata("TargetedSDKArchitecture", "x86"); 1218item.SetMetadata("CopyRedist", "true"); 1219item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1222item2.SetMetadata("ExpandReferenceAssemblies", "true"); 1223item2.SetMetadata("TargetedSDKConfiguration", "Retail"); 1224item2.SetMetadata("TargetedSDKArchitecture", "x86"); 1225item2.SetMetadata("CopyRedist", "true"); 1226item2.SetMetadata("OriginalItemSpec", "AnotherSDK, Version=2.0"); 1260item.SetMetadata("ExpandReferenceAssemblies", "true"); 1261item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1262item.SetMetadata("TargetedSDKArchitecture", "x86"); 1263item.SetMetadata("CopyRedist", "true"); 1264item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1267item2.SetMetadata("ExpandReferenceAssemblies", "true"); 1268item2.SetMetadata("TargetedSDKConfiguration", "Retail"); 1269item2.SetMetadata("TargetedSDKArchitecture", "x86"); 1270item2.SetMetadata("CopyRedist", "true"); 1271item2.SetMetadata("OriginalItemSpec", "AnotherSDK, Version=2.0"); 1272item2.SetMetadata("CopyRedistToSubDirectory", "ASubDirectory\\TwoDeep"); 1302item.SetMetadata("ExpandReferenceAssemblies", "true"); 1303item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1304item.SetMetadata("TargetedSDKArchitecture", "x86"); 1305item.SetMetadata("CopyRedist", "true"); 1306item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1309item2.SetMetadata("ExpandReferenceAssemblies", "true"); 1310item2.SetMetadata("TargetedSDKConfiguration", "Retail"); 1311item2.SetMetadata("TargetedSDKArchitecture", "x86"); 1312item2.SetMetadata("CopyRedist", "true"); 1313item2.SetMetadata("OriginalItemSpec", "AnotherSDK, Version=2.0"); 1348item.SetMetadata("ExpandReferenceAssemblies", "false"); 1349item.SetMetadata("TargetedSDKConfiguration", "Retail"); 1350item.SetMetadata("TargetedSDKArchitecture", "x86"); 1351item.SetMetadata("CopyRedistToSubDirectory", "SDK1"); 1352item.SetMetadata("CopyRedist", "true"); 1353item.SetMetadata("OriginalItemSpec", "SDKWithManifest, Version=2.0"); 1356item2.SetMetadata("ExpandReferenceAssemblies", "false"); 1357item2.SetMetadata("TargetedSDKConfiguration", "Retail"); 1358item2.SetMetadata("TargetedSDKArchitecture", "x86"); 1359item2.SetMetadata("CopyRedistToSubDirectory", "SDK2"); 1360item2.SetMetadata("CopyRedist", "true"); 1361item2.SetMetadata("OriginalItemSpec", "AnotherSDK, Version=2.0");
MakeDir_Tests.cs (1)
38t.Directories[0].SetMetadata("Locale", "en-GB");
Move_Tests.cs (4)
447i1.SetMetadata("Locale", "en-GB"); 448i1.SetMetadata("Color", "taupe"); 452o1.SetMetadata("Locale", "fr"); 453o1.SetMetadata("Flavor", "Pumpkin");
MSBuild_Tests.cs (16)
518projects[1].SetMetadata("Properties", "MyProp=1"); 519projects[3].SetMetadata("Properties", "MyProp=1"); 576projects[1].SetMetadata("Properties", "MyProp=1"); 577projects[3].SetMetadata("Properties", "MyProp=1"); 632projects[1].SetMetadata("Properties", ""); 633projects[3].SetMetadata("Properties", "MyProp=1"); 687projects[1].SetMetadata("Properties", "=1"); 688projects[3].SetMetadata("Properties", "=;1"); 734projects[0].SetMetadata("AdditionalProperties", "MyPropA=1"); 735projects[1].SetMetadata("AdditionalProperties", "MyPropA=0"); 790projects[0].SetMetadata("AdditionalProperties", "MyPropA=1"); 791projects[1].SetMetadata("AdditionalProperties", "MyPropA=1"); 793projects[0].SetMetadata("Properties", "MyPropG=1"); 794projects[1].SetMetadata("Properties", "MyPropG=0"); 848projects[0].SetMetadata("AdditionalProperties", "MyPropA=1"); 849projects[1].SetMetadata("AdditionalProperties", "MyPropA=1");
RemoveDir_Tests.cs (1)
36i.SetMetadata("Locale", "en-GB");
ResolveNonMSBuildProjectOutput_Tests.cs (1)
341taskItems[0].SetMetadata(attributeProject, "{invalid guid}");
ResolveSDKReference_Tests.cs (89)
186installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 187installLocation.SetMetadata("PlatformVersion", "8.0"); 437item.SetMetadata("DependsOn", "NotHere, Version=1.0"); 441installedSDK.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 503installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 610installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 665installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 723installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 778installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 833installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 888installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 945installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 999installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1054installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1086installedSDK.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1123installedSDK.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1158item.SetMetadata("TargetedSDKConfiguration", "Release"); 1159item.SetMetadata("TargetedSDKArchitecture", "AnyCPU"); 1164installedSDK.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1203installedSDK.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1242installedSDK.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1276installedSDK.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1335installedSDK1.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1338installedSDK2.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1341installedSDK3.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1344installedSDK4.SetMetadata("SDKName", String.Empty); 1385installedSDK.SetMetadata("SDKName", "RandomSDK, Version=1.0"); 1413installedSDK.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1475installedSDK.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1518installLocation.SetMetadata("SDKName", "BadTestSDK, Version=2.0"); 1522installLocation2.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1577installLocation.SetMetadata("SDKName", "BadTestSDK, Version=2.0"); 1580installLocation2.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1664installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1753installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1832item.SetMetadata("FrameworkIdentity", "MetadataIdentity"); 1833item.SetMetadata("PlatformIdentity", "PlatformIdentity"); 1834item.SetMetadata("AppXLocation", "Metadata AppxLocation"); 1835item.SetMetadata("SDKType", "External"); 1836item.SetMetadata("SupportsMultipleVersions", "Error"); 1837item.SetMetadata("DisplayName", "ManifestDisplayName"); 1838item.SetMetadata("CopyRedist", "True"); 1839item.SetMetadata("ExpandReferenceAssemblies", "True"); 1840item.SetMetadata("CopyLocalExpandedReferenceAssemblies", "True"); 1841item.SetMetadata("TargetedSDKConfiguration", "Custom"); 1842item.SetMetadata("TargetedSDKArchitecture", "Any CPU"); 1843item.SetMetadata("CopyRedistToSubDirectory", "MyRedistSubDirectory"); 1844item.SetMetadata("MaxPlatformVersion", "9.0"); 1845item.SetMetadata("MaxOSVersionTested", "3.3.3"); 1846item.SetMetadata("MinOSVersion", "3.3.3"); 1851installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 1930installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2001installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2066installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2139installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2208installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2278installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2349installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2421installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2493installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2567installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2627item.SetMetadata("ProductFamilyName", "MetadataFamily"); 2634installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2699installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2759item.SetMetadata("SupportsMultipleVersions", "WoofWoof"); 2766installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2852installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=1.0"); 2855installLocation2.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 2858installLocation3.SetMetadata("SDKName", "GoodTestSDK, Version=3.0"); 2950installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=1.0"); 2953installLocation2.SetMetadata("SDKName", "GoodTestSDK2, Version=2.0"); 2956installLocation3.SetMetadata("SDKName", "GoodTestSDK3, Version=3.0"); 3059installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=1.0"); 3062installLocation2.SetMetadata("SDKName", "GoodTestSDK2, Version=2.0"); 3065installLocation3.SetMetadata("SDKName", "GoodTestSDK3, Version=3.0"); 3068installLocation4.SetMetadata("SDKName", "GoodTestSDK3, Version=4.0"); 3161installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=1.0"); 3164installLocation2.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 3167installLocation3.SetMetadata("SDKName", "GoodTestSDK, Version=3.0"); 3248installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 3316item.SetMetadata("SupportedArchitectures", "X86"); 3323installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 3392item.SetMetadata("SupportedArchitectures", "ARM"); 3399installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 3460item.SetMetadata("SupportedArchitectures", "X64;X86;Neutral"); 3467installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 3541installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 3603installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0"); 3677installLocation.SetMetadata("SDKName", "GoodTestSDK, Version=2.0");
ResourceHandling\GenerateResource_Tests.cs (6)
69t.Sources[0].SetMetadata("Attribute", "InputValue"); 157t.Sources[0].SetMetadata("Attribute", "InputValue"); 2189i.SetMetadata("Locale", "en-GB"); 2193o.SetMetadata("Locale", "fr"); 2194o.SetMetadata("Flavor", "Pumpkin"); 2227i.SetMetadata("Locale", "en-GB");
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
547expectedItem.SetMetadata(itemMetadataName, itemMetadataValue);
Microsoft.Build.Utilities.Core (4)
TaskItem.cs (4)
340destinationAsITaskItem2.SetMetadata(entry.Key, entry.Value); 349destinationItem.SetMetadata(entry.Key, EscapingUtilities.Escape(entry.Value)); 360destinationAsITaskItem2.SetMetadata("OriginalItemSpec", ((ITaskItem2)this).EvaluatedIncludeEscaped); 364destinationItem.SetMetadata("OriginalItemSpec", EscapingUtilities.Escape(ItemSpec));
Microsoft.DotNet.Arcade.Sdk (2)
src\GetAssemblyFullName.cs (1)
30item.SetMetadata(FullNameMetadata, AssemblyName.GetAssemblyName(assemblyPath).FullName);
src\GroupItemsBy.cs (1)
68result.SetMetadata(metadataName,
Microsoft.DotNet.Build.Tasks.Feed (2)
src\BuildModelFactory.cs (1)
172artifact.SetMetadata("RelativeBlobPath", $"{AssetsVirtualDir}symbols/{fileName}");
src\PushToBuildStorage.cs (1)
168i.SetMetadata("RelativeBlobPath", $"{AssetsVirtualDir}symbols/{fileName}");
Microsoft.DotNet.Build.Tasks.Packaging (11)
ApplyBaseLine.cs (2)
92dependency.SetMetadata("Version", baseLineVersion.ToString(3)); 131dependency.SetMetadata("Version", packageVersion.ToString());
GetApplicableAssetsFromPackages.cs (4)
225item.SetMetadata("Private", "false"); 226item.SetMetadata("FromPkgProj", "true"); 227item.SetMetadata("NuGetPackageId", packageItem.Package); 228item.SetMetadata("NuGetPackageVersion", packageItem.PackageVersion);
SplitReferences.cs (1)
74reference.SetMetadata("TargetFramework", TargetFramework);
ValidatePackage.cs (4)
659item.SetMetadata("ShortName", ShortName); 660item.SetMetadata("Version", SupportedVersion.ToString()); 661item.SetMetadata("Inbox", IsInbox.ToString()); 662item.SetMetadata("ValidatedRIDs", String.Join(";", RuntimeIds));
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
65item.SetMetadata(OutputMetadata, new Guid(reducedHash).ToString("B").ToUpperInvariant());
Microsoft.DotNet.Build.Tasks.Workloads (22)
CreateVisualStudioWorkload.wix.cs (15)
349msiOutputItem.SetMetadata(Metadata.PackageProject, csproj.Create()); 367swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{sdkFeatureBand}"); 368swixProjectItem.SetMetadata(Metadata.PackageType, DefaultValues.PackageTypeMsiPack); 369swixProjectItem.SetMetadata(Metadata.IsPreview, "false"); 396msiOutputItem.SetMetadata(Metadata.PackageProject, csproj.Create()); 416swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{manifestPackage.SdkFeatureBand}"); 417swixProjectItem.SetMetadata(Metadata.PackageType, DefaultValues.PackageTypeMsiPack); 418swixProjectItem.SetMetadata(Metadata.IsPreview, "false"); 445swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{((WorkloadManifestPackage)msi.Package).SdkFeatureBand}"); 446swixProjectItem.SetMetadata(Metadata.PackageType, DefaultValues.PackageTypeMsiManifest); 447swixProjectItem.SetMetadata(Metadata.IsPreview, "false"); 457msiOutputItem.SetMetadata(Metadata.PackageProject, csproj.Create()); 472swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{swixComponent.SdkFeatureBand}"); 473swixProjectItem.SetMetadata(Metadata.PackageType, DefaultValues.PackageTypeComponent); 474swixProjectItem.SetMetadata(Metadata.IsPreview, swixComponent.Name.EndsWith(".pre").ToString().ToLowerInvariant());
CreateVisualStudioWorkloadSet.wix.cs (4)
74msiOutputItem.SetMetadata(Metadata.PackageProject, csproj.Create()); 88swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{workloadSetPackage.SdkFeatureBand}"); 89swixProjectItem.SetMetadata(Metadata.PackageType, DefaultValues.PackageTypeMsiWorkloadSet); 90swixProjectItem.SetMetadata(Metadata.IsPreview, "false");
Swix\PackageGroupSwixProject.wix.cs (3)
83swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{swixPackageGroup.SdkFeatureBand}"); 84swixProjectItem.SetMetadata(Metadata.PackageType, packageGroupType); 85swixProjectItem.SetMetadata(Metadata.IsPreview, "false");
Microsoft.DotNet.Build.Tasks.Workloads.Tests (1)
SwixPackageTests.cs (1)
53msiItem.SetMetadata(Metadata.Platform, "x64");
Microsoft.DotNet.VersionTools.Tasks (1)
BaseDependenciesTask.cs (1)
462item.SetMetadata(name, value);
Microsoft.DotNet.XliffTasks (5)
Tasks\GatherTranslatedSource.cs (4)
82output.SetMetadata(MetadataKey.Link, link); 91output.SetMetadata(MetadataKey.ManifestResourceName, manifestResourceName); 102output.SetMetadata(MetadataKey.LogicalName, logicalName); 113output.SetMetadata(MetadataKey.DependentUpon, dependentUpon);
Tasks\GatherXlf.cs (1)
59source.SetMetadata(MetadataKey.XlfTranslatedFilename, translatedFileName);
Microsoft.Extensions.ApiDescription.Client (3)
MetadataSerializer.cs (3)
41item.SetMetadata(key, value); 47item.SetMetadata(key, builder.ToString()); 108item2.SetMetadata(keyAndValue[0], keyAndValue[1]);
Microsoft.Extensions.ApiDescription.Client.Tests (2)
MetadataSerializerTest.cs (2)
92item.Setup(i => i.SetMetadata(key, escapedValue)).Verifiable(); 98item.Verify(i => i.SetMetadata(key, escapedValue), Times.Once);
MSBuild (2)
TaskParameter.cs (2)
902destinationItem.SetMetadata(entry.Key, entry.Value); 909destinationItem.SetMetadata("OriginalItemSpec", EscapingUtilities.Escape(ItemSpec));
MSBuildTaskHost (2)
TaskParameter.cs (2)
902destinationItem.SetMetadata(entry.Key, entry.Value); 909destinationItem.SetMetadata("OriginalItemSpec", EscapingUtilities.Escape(ItemSpec));
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (2)
311outputItem.SetMetadata(SharedStrings.Link, inputItem.GetMetadata(SharedStrings.Link)); 312outputItem.SetMetadata(SharedStrings.LogicalName, inputItem.GetMetadata(SharedStrings.LogicalName));