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