159 references to ItemMetadataNames
Microsoft.Build (29)
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (11)
560if (!String.IsNullOrEmpty(projects[i].GetMetadata(ItemMetadataNames.PropertiesMetadataName))) 565ItemMetadataNames.PropertiesMetadataName, 566projects[i].GetMetadata(ItemMetadataNames.PropertiesMetadataName).Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries), 582string projectUndefineProperties = projects[i].GetMetadata(ItemMetadataNames.UndefinePropertiesMetadataName); 604if (!String.IsNullOrEmpty(projects[i].GetMetadata(ItemMetadataNames.AdditionalPropertiesMetadataName))) 609ItemMetadataNames.AdditionalPropertiesMetadataName, 610projects[i].GetMetadata(ItemMetadataNames.AdditionalPropertiesMetadataName).Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries), 704if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceProjectFile))) 706outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceProjectFile, projects[i].GetMetadata(FileUtilities.ItemSpecModifiers.FullPath)); 711if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceTargetName))) 713outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceTargetName, targetName);
BuildCheck\Checks\CopyAlwaysCheck.cs (2)
75if (MSBuildNameIgnoreCaseComparer.Default.Equals(keyValuePair.Key, ItemMetadataNames.copyToOutputDirectory)) 77if (MSBuildNameIgnoreCaseComparer.Default.Equals(keyValuePair.Value, ItemMetadataNames.copyAlways))
BuildCheck\Checks\EmbeddedResourceCheck.cs (2)
59if (MSBuildNameIgnoreCaseComparer.Default.Equals(keyValuePair.Key, ItemMetadataNames.culture)) 65if (MSBuildNameIgnoreCaseComparer.Default.Equals(keyValuePair.Key, ItemMetadataNames.withCulture) &&
BuildCheck\Checks\PreferProjectReferenceCheck.cs (1)
57context.Data.EvaluatedProperties.TryGetValue(ItemMetadataNames.targetPath, out targetPath);
Graph\GraphBuilder.cs (3)
668string existingTargetsMetadata = existingItem.GetMetadataValue(ItemMetadataNames.ProjectReferenceTargetsMetadataName); 669string newTargetsMetadata = newItem.GetMetadataValue(ItemMetadataNames.ProjectReferenceTargetsMetadataName); 681mergedItem.SetMetadata(ItemMetadataNames.ProjectReferenceTargetsMetadataName, $"{existingTargetsMetadata};{newTargetsMetadata}");
Graph\ProjectGraph.cs (1)
814var targetsString = graphEdge.GetMetadataValue(ItemMetadataNames.ProjectReferenceTargetsMetadataName);
Graph\ProjectInterpretation.cs (8)
297directMetadata: [new KeyValuePair<string, string>(ItemMetadataNames.PropertiesMetadataName, $"{globalPropertyName}={globalPropertyValue}")], 335ItemMetadataNames.PropertiesMetadataName, 388var properties = SplitPropertyNameValuePairs(ItemMetadataNames.PropertiesMetadataName, projectReference.GetMetadataValue(ItemMetadataNames.PropertiesMetadataName)); 389var additionalProperties = SplitPropertyNameValuePairs(ItemMetadataNames.AdditionalPropertiesMetadataName, projectReference.GetMetadataValue(ItemMetadataNames.AdditionalPropertiesMetadataName)); 390var undefineProperties = SplitPropertyNames(projectReference.GetMetadataValue(ItemMetadataNames.UndefinePropertiesMetadataName)); 505string targetsMetadataValue = projectReferenceTarget.GetMetadataValue(ItemMetadataNames.ProjectReferenceTargetsMetadataName);
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
600if (string.Equals((string)item.Key, ItemMetadataNames.ProjectConfigurationDescription, StringComparison.OrdinalIgnoreCase))
Microsoft.Build.Tasks.Core (129)
AssemblyDependency\GenerateBindingRedirects.cs (1)
132OutputAppConfigFile.SetMetadata(ItemMetadataNames.targetPath, TargetName);
AssemblyDependency\Reference.cs (3)
380hasSpecificVersionMetadata = MetadataConversionUtilities.TryConvertItemMetadataToBool(item, ItemMetadataNames.specificVersion); 997ItemMetadataNames.privateMetadata, 1019ItemMetadataNames.privateMetadata,
AssemblyDependency\ReferenceTable.cs (46)
550string executableExtension = referenceAssemblyName.GetMetadata(ItemMetadataNames.executableExtension); 556string fusionName = referenceAssemblyName.GetMetadata(ItemMetadataNames.fusionName); 557bool result = MetadataConversionUtilities.TryConvertItemMetadataToBool(referenceAssemblyName, ItemMetadataNames.IgnoreVersionForFrameworkReference, out bool metadataFound); 571bool wantSpecificVersion = MetadataConversionUtilities.TryConvertItemMetadataToBool(referenceAssemblyName, ItemMetadataNames.specificVersion, out bool foundSpecificVersionMetadata); 591reference.HintPath = referenceAssemblyName.GetMetadata(ItemMetadataNames.hintPath); 623ItemMetadataNames.embedInteropTypes); 627reference.AssemblyFolderKey = referenceAssemblyName.GetMetadata(ItemMetadataNames.assemblyFolderKey); 836string version = item.GetMetadata(ItemMetadataNames.assemblyVersion); 842string publicKeyToken = item.GetMetadata(ItemMetadataNames.publicKeyToken); 848string name = item.GetMetadata(ItemMetadataNames.assemblyName); 869bool hasSpecificVersionMetadata = MetadataConversionUtilities.TryConvertItemMetadataToBool(referenceAssemblyFile, ItemMetadataNames.specificVersion); 885ItemMetadataNames.embedInteropTypes); 929var implementationFile = reference.PrimarySourceItem.GetMetadata(ItemMetadataNames.winmdImplmentationFile); 1265string frameworkReferenceName = reference.PrimarySourceItem.GetMetadata(ItemMetadataNames.frameworkReferenceName); 2695bool hasImplementationFile = referenceItem.GetMetadata(ItemMetadataNames.winmdImplmentationFile).Length > 0; 2696bool hasImageRuntime = referenceItem.GetMetadata(ItemMetadataNames.imageRuntime).Length > 0; 2697bool hasWinMDFile = referenceItem.GetMetadata(ItemMetadataNames.winMDFile).Length > 0; 2710referenceItem.RemoveMetadata(ItemMetadataNames.winmdImplmentationFile); 2717referenceItem.RemoveMetadata(ItemMetadataNames.imageRuntime); 2724referenceItem.RemoveMetadata(ItemMetadataNames.winMDFile); 2728referenceItem.SetMetadata(ItemMetadataNames.version, reference.ReferenceVersion == null ? string.Empty : reference.ReferenceVersion.ToString()); 2731referenceItem.RemoveMetadata(ItemMetadataNames.fusionName); 2762item.SetMetadata(ItemMetadataNames.destinationSubDirectory, FileUtilities.EnsureTrailingSlash(Path.GetDirectoryName(satelliteFile))); 2791if (referenceItem.GetMetadata(ItemMetadataNames.msbuildReferenceSourceTarget).Length == 0) 2793referenceItem.SetMetadata(ItemMetadataNames.msbuildReferenceSourceTarget, "ResolveAssemblyReference"); 2796if (referenceItem.GetMetadata(ItemMetadataNames.msbuildReferenceSourceTarget).Equals("ProjectReference")) 2800referenceItem.SetMetadata(ItemMetadataNames.projectReferenceOriginalItemSpec, reference.PrimarySourceItem.GetMetadata("OriginalItemSpec")); 2819referenceItem.SetMetadata(ItemMetadataNames.winmdImplmentationFile, Path.GetFileName(reference.ImplementationAssembly)); 2823nonForwardableMetadata?.Remove(ItemMetadataNames.winmdImplmentationFile); 2830nonForwardableMetadata?.Remove(ItemMetadataNames.winMDFileType); 2833referenceItem.SetMetadata(ItemMetadataNames.winMDFileType, "Managed"); 2837referenceItem.SetMetadata(ItemMetadataNames.winMDFileType, "Native"); 2843nonForwardableMetadata?.Remove(ItemMetadataNames.winMDFile); 2844referenceItem.SetMetadata(ItemMetadataNames.winMDFile, "true"); 2848referenceItem.SetMetadata(ItemMetadataNames.fusionName, fusionName); 2861yield return new KeyValuePair<string, string>(ItemMetadataNames.resolvedFrom, reference.ResolvedSearchPath); 2864yield return new KeyValuePair<string, string>(ItemMetadataNames.copyLocal, reference.IsCopyLocal ? "true" : "false"); 2869yield return new KeyValuePair<string, string>(ItemMetadataNames.redist, reference.RedistName); 2876yield return new KeyValuePair<string, string>(ItemMetadataNames.frameworkFile, "true"); 2882yield return new KeyValuePair<string, string>(ItemMetadataNames.imageRuntime, reference.ImageRuntime); 2889yield return new KeyValuePair<string, string>(ItemMetadataNames.isRedistRoot, (bool)reference.IsRedistRoot ? "true" : "false"); 3023RemoveMetadatum(ItemMetadataNames.winmdImplmentationFile, item, removedMetadata); 3024RemoveMetadatum(ItemMetadataNames.imageRuntime, item, removedMetadata); 3025RemoveMetadatum(ItemMetadataNames.winMDFile, item, removedMetadata); 3028RemoveMetadatum(ItemMetadataNames.targetPath, item, removedMetadata); 3052ItemMetadataNames.copyLocal,
AssemblyDependency\ResolveAssemblyReference.cs (15)
1475LogAttribute(item, ItemMetadataNames.privateMetadata); 1476LogAttribute(item, ItemMetadataNames.hintPath); 1477LogAttribute(item, ItemMetadataNames.specificVersion); 1478LogAttribute(item, ItemMetadataNames.embedInteropTypes); 1479LogAttribute(item, ItemMetadataNames.executableExtension); 1480LogAttribute(item, ItemMetadataNames.subType); 1487LogAttribute(item, ItemMetadataNames.privateMetadata); 1488LogAttribute(item, ItemMetadataNames.fusionName); 1514LogAttribute(installedAssemblyTable, ItemMetadataNames.frameworkDirectory); 1560LogAttribute(installedAssemblySubsetTable, ItemMetadataNames.frameworkDirectory); 1597LogAttribute(profileTable, ItemMetadataNames.frameworkDirectory); 3040string frameworkDirectory = installedAssemblyTable.GetMetadata(ItemMetadataNames.frameworkDirectory); 3110string subType = assembly.GetMetadata(ItemMetadataNames.subType); 3115else if (!IsAvailableForTargetFramework(assembly.GetMetadata(ItemMetadataNames.targetFramework))) 3117Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.FailedToResolveReferenceBecauseHigherTargetFramework", assembly.ItemSpec, assembly.GetMetadata(ItemMetadataNames.targetFramework));
AssignCulture.cs (9)
143string dependentUpon = AssignedFiles[i].GetMetadata(ItemMetadataNames.dependentUpon); 144string existingCulture = AssignedFiles[i].GetMetadata(ItemMetadataNames.culture); 148AssignedFiles[i].SetMetadata(ItemMetadataNames.withCulture, "true"); 160ConversionUtilities.ValidBooleanFalse(AssignedFiles[i].GetMetadata(ItemMetadataNames.withCulture))); 172AssignedFiles[i].RemoveMetadata(ItemMetadataNames.culture); 178AssignedFiles[i].SetMetadata(ItemMetadataNames.culture, info.culture); 179AssignedFiles[i].SetMetadata(ItemMetadataNames.withCulture, "true"); 185AssignedFiles[i].SetMetadata(ItemMetadataNames.withCulture, "false"); 195AssignedFiles[i].GetMetadata(ItemMetadataNames.culture),
AssignTargetPath.cs (3)
80string targetPath = Files[i].GetMetadata(ItemMetadataNames.targetPath); 85targetPath = Files[i].GetMetadata(ItemMetadataNames.link); 122AssignedFiles[i].SetMetadata(ItemMetadataNames.targetPath, EscapingUtilities.Escape(targetPath));
CreateManifestResourceName.cs (2)
148string dependentUpon = resourceFile.GetMetadata(ItemMetadataNames.dependentUpon); 218resourceFile.GetMetadata(ItemMetadataNames.targetPath),
FindAppConfigFile.cs (1)
135AppConfigFile.SetMetadata(ItemMetadataNames.targetPath, TargetPath);
GenerateLauncher.cs (1)
102OutputEntryPoint.SetMetadata(ItemMetadataNames.targetPath, results.KeyFile);
GenerateManifestBase.cs (3)
141string isPrimary = item.GetMetadata(ItemMetadataNames.isPrimary); 335string targetPath = item.GetMetadata(ItemMetadataNames.targetPath); 535string targetPath = item.GetMetadata(ItemMetadataNames.targetPath);
GenerateResource.cs (1)
2533string fusionName = assemblyFile.GetMetadata(ItemMetadataNames.fusionName);
GetSDKReferenceFiles.cs (12)
458if (outputItem.GetMetadata(ItemMetadataNames.msbuildReferenceSourceTarget).Length == 0) 460outputItem.SetMetadata(ItemMetadataNames.msbuildReferenceSourceTarget, "ExpandSDKReference"); 464outputItem.SetMetadata(ItemMetadataNames.msbuildReferenceFromSDK, reference.SDKReferenceItem.GetMetadata("OriginalItemSpec")); 465outputItem.SetMetadata(ItemMetadataNames.msbuildReferenceGrouping, reference.SDKReferenceItem.GetMetadata("OriginalItemSpec")); 466outputItem.SetMetadata(ItemMetadataNames.msbuildReferenceGroupingDisplayName, reference.SDKReferenceItem.GetMetadata("DisplayName")); 479outputItem.SetMetadata(ItemMetadataNames.fusionName, referenceInfo.FusionName); 484outputItem.SetMetadata(ItemMetadataNames.imageRuntime, referenceInfo.ImageRuntime); 489outputItem.SetMetadata(ItemMetadataNames.winMDFile, "true"); 493outputItem.SetMetadata(ItemMetadataNames.winMDFileType, "Managed"); 497outputItem.SetMetadata(ItemMetadataNames.winMDFileType, "Native"); 540if (outputItem.GetMetadata(ItemMetadataNames.msbuildReferenceSourceTarget).Length == 0) 542outputItem.SetMetadata(ItemMetadataNames.msbuildReferenceSourceTarget, "ExpandSDKReference");
MSBuild.cs (4)
652if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceProjectFile))) 654outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceProjectFile, projects[i].GetMetadata(FileUtilities.ItemSpecModifiers.FullPath)); 659if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceTargetName))) 661outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceTargetName, targetName);
ResolveComReference.cs (12)
799string embedInteropTypes = tlbRefInfo.taskItem.GetMetadata(ItemMetadataNames.embedInteropTypes); 809tlbRefInfo.taskItem.SetMetadata(ItemMetadataNames.embedInteropTypes, "false"); 829newTlbRef.taskItem.SetMetadata(ItemMetadataNames.embedInteropTypes, "false"); 911referencePathItem.SetMetadata(ItemMetadataNames.fusionName, fusionName); 1612if (taskItem.GetMetadata(ItemMetadataNames.msbuildReferenceSourceTarget).Length == 0) 1614taskItem.SetMetadata(ItemMetadataNames.msbuildReferenceSourceTarget, "ResolveComReference"); 1617string embedInteropTypesMetadata = taskItem.GetMetadata(ItemMetadataNames.embedInteropTypes); 1625taskItem.SetMetadata(ItemMetadataNames.copyLocal, "false"); 1630string privateMetadata = taskItem.GetMetadata(ItemMetadataNames.privateMetadata); 1638taskItem.SetMetadata(ItemMetadataNames.copyLocal, "false"); 1642taskItem.SetMetadata(ItemMetadataNames.copyLocal, "true"); 1648taskItem.SetMetadata(ItemMetadataNames.copyLocal, privateMetadata);
ResolveManifestFiles.cs (14)
266outputItem.SetMetadata(ItemMetadataNames.targetPath, targetPath); 294targetPath = item.GetMetadata(ItemMetadataNames.targetPath); 305outputItem.SetMetadata(ItemMetadataNames.targetPath, targetPath); 331string copyLocal = item.GetMetadata(ItemMetadataNames.copyLocal); 357string targetPath = item.GetMetadata(ItemMetadataNames.targetPath); 360targetPath = item.GetMetadata(ItemMetadataNames.destinationSubPath); 524string itemDestPath = item.GetMetadata(ItemMetadataNames.targetPath); 527itemDestPath = item.GetMetadata(ItemMetadataNames.destinationSubPath); 530string assemblyDestPath = assembly.GetMetadata(ItemMetadataNames.targetPath); 533assemblyDestPath = assembly.GetMetadata(ItemMetadataNames.destinationSubPath); 808this.targetPath = item.GetMetadata(ItemMetadataNames.targetPath); 849string fusionName = item.GetMetadata(ItemMetadataNames.fusionName); 852string destSubDir = item.GetMetadata(ItemMetadataNames.destinationSubDirectory); 965Debug.Assert(!_dictionary.ContainsKey(key), String.Format(CultureInfo.CurrentCulture, "Two or more items with same '{0}' attribute detected", ItemMetadataNames.targetPath));
ResolveNativeReference.cs (2)
242itemNativeReferenceFile.SetMetadata(ItemMetadataNames.fusionName, manifest.AssemblyIdentity.Name); 296itemLooseEtcFile.SetMetadata(ItemMetadataNames.parentFile, Path.GetFileName(path));
Microsoft.Build.Tasks.UnitTests (1)
ResourceHandling\GenerateResource_Tests.cs (1)
3925referenceItem.SetMetadata(ItemMetadataNames.fusionName, "System.Resources.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51");