13 implementations of GetMetadata
Microsoft.Build (3)
Instance\ProjectItemInstance.cs (2)
468string ITaskItem.GetMetadata(string metadataName) 1307public string GetMetadata(string metadataName)
TaskParameter.cs (1)
835public string GetMetadata(string metadataName)
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TaskRegistry_Tests.cs (1)
2289public string GetMetadata(string metadataName)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
54public string GetMetadata(string metadataName)
MockTask.cs (1)
443public string GetMetadata(string attributeName)
TaskThatReturnsMinimalItem.cs (1)
44public string GetMetadata(string metadataName) => "value";
Microsoft.Build.Framework (1)
TaskItemData.cs (1)
72public string GetMetadata(string metadataName)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TestUtilities\SimpleTaskItem.cs (1)
32public string? GetMetadata(string metadataName) =>
Microsoft.Build.Tasks.UnitTests (1)
GenerateBindingRedirects_Tests.cs (1)
394string ITaskItem.GetMetadata(string metadataName)
Microsoft.Build.Utilities.Core (1)
TaskItem.cs (1)
286public string GetMetadata(string metadataName)
MSBuild (1)
TaskParameter.cs (1)
835public string GetMetadata(string metadataName)
MSBuildTaskHost (1)
TaskParameter.cs (1)
835public string GetMetadata(string metadataName)
1263 references to GetMetadata
Crossgen2Tasks (31)
PrepareForReadyToRunCompilation.cs (5)
73string isVersion5 = Crossgen2Tool.GetMetadata(MetadataKeys.IsVersion5); 76string perfmapVersion = Crossgen2Tool.GetMetadata(MetadataKeys.PerfmapFormatVersion); 86string diaSymReaderPath = CrossgenTool?.GetMetadata(MetadataKeys.DiaSymReader); 134var outputR2RImageRelativePath = file.GetMetadata(MetadataKeys.RelativePath); 235var compositeR2RImageRelativePath = MainAssembly.GetMetadata(MetadataKeys.RelativePath);
ResolveReadyToRunCompilers.cs (6)
61_targetRuntimeIdentifier = _runtimePack?.GetMetadata(MetadataKeys.RuntimeIdentifier); 65string supportedRuntimeIdentifiers = targetingPack?.GetMetadata(MetadataKeys.RuntimePackRuntimeIdentifiers); 107_crossgenTool.PackagePath = _runtimePack?.GetMetadata(MetadataKeys.PackageDirectory); 136_crossgen2Tool.PackagePath = _crossgen2Pack?.GetMetadata(MetadataKeys.PackageDirectory); 138!NuGetVersion.TryParse(_crossgen2Pack.GetMetadata(MetadataKeys.NuGetPackageVersion), out NuGetVersion crossgen2PackVersion)) 201pack => pack.GetMetadata(metadataKey)
RunReadyToRunCompiler.cs (17)
43private string DotNetHostPath => Crossgen2Tool?.GetMetadata(MetadataKeys.DotNetHostPath); 49string version5 = Crossgen2Tool?.GetMetadata(MetadataKeys.IsVersion5); 73private string DiaSymReader => CrossgenTool.GetMetadata(MetadataKeys.DiaSymReader); 82string emitSymbolsMetadata = CompilationEntry.GetMetadata(MetadataKeys.EmitSymbols); 84_createPDBCommand = CompilationEntry.GetMetadata(MetadataKeys.CreatePDBCommand); 85string createCompositeImageMetadata = CompilationEntry.GetMetadata(MetadataKeys.CreateCompositeImage); 115string jitPath = Crossgen2Tool.GetMetadata(MetadataKeys.JitPath); 133if (string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS))) 138if (string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetArch))) 157if (!File.Exists(CrossgenTool.GetMetadata(MetadataKeys.JitPath))) 164_outputPDBImage = CompilationEntry.GetMetadata(MetadataKeys.OutputPDBImage); 190_outputR2RImage = CompilationEntry.GetMetadata(MetadataKeys.OutputR2RImage); 292result.AppendLine($"/JITPath \"{CrossgenTool.GetMetadata(MetadataKeys.JitPath)}\""); 305string jitPath = Crossgen2Tool.GetMetadata(MetadataKeys.JitPath); 312result.AppendLine($"--targetos:{Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS)}"); 313result.AppendLine($"--targetarch:{Crossgen2Tool.GetMetadata(MetadataKeys.TargetArch)}"); 331string perfmapFormatVersion = Crossgen2Tool.GetMetadata(MetadataKeys.PerfmapFormatVersion);
ShimFilesSimulatingLogicInSdkRepo\SimpleItemUtilities.cs (3)
16string value = item.GetMetadata(metadataName); 28string value = item.GetMetadata(name); 35string value = item.GetMetadata(name);
ILLink.Tasks (10)
LinkTask.cs (10)
318 string rootMode = assemblyItem.GetMetadata ("RootMode"); 362 string assemblyTrimMode = assembly.GetMetadata ("TrimMode"); 363 string isTrimmable = assembly.GetMetadata ("IsTrimmable"); 381 string optimizationValue = assembly.GetMetadata (optimization); 392 string singleWarn = assembly.GetMetadata ("TrimmerSingleWarn"); 465 var value = customData.GetMetadata ("Value"); 475 var featureValue = featureSetting.GetMetadata ("Value"); 497 var stepType = customStep.GetMetadata ("Type"); 503 var beforeStep = customStep.GetMetadata ("BeforeStep"); 504 var afterStep = customStep.GetMetadata ("AfterStep");
installer.tasks (9)
GenerateFileVersionProps.cs (5)
47var targetPath = file.GetMetadata("TargetPath"); 54if (file.GetMetadata("IsSymbolFile").Equals("true", StringComparison.OrdinalIgnoreCase)) 165var filePath = file.GetMetadata("FullPath"); 181Version.TryParse(file.GetMetadata("AssemblyVersion"), out assemblyVersion); 182Version.TryParse(file.GetMetadata("FileVersion"), out fileVersion);
RegenerateDownloadTable.cs (3)
117string parenthetical = platform.GetMetadata("Parenthetical"); 127string branchAbbr = branch.GetMetadata("Abbr"); 133string platformAbbr = platform.GetMetadata("Abbr");
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (1)
55string branch = item.GetMetadata("Branch")
Microsoft.AspNetCore.Mvc.Testing.Tasks (2)
GenerateMvcTestManifestTask.cs (2)
38var contentRoot = project.GetMetadata("ContentRoot"); 39var assemblyName = project.GetMetadata("Identity");
Microsoft.Build (19)
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (11)
333if (TryParseSkipNonExistentProjects(project.GetMetadata("SkipNonexistentProjects"), out SkipNonExistentProjectsBehavior behavior)) 560if (!String.IsNullOrEmpty(projects[i].GetMetadata(ItemMetadataNames.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))) 610projects[i].GetMetadata(ItemMetadataNames.AdditionalPropertiesMetadataName).Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries), 637if (!String.IsNullOrEmpty(projects[i].GetMetadata("ToolsVersion"))) 639toolsVersions[i] = projects[i].GetMetadata("ToolsVersion"); 704if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceProjectFile))) 706outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceProjectFile, projects[i].GetMetadata(FileUtilities.ItemSpecModifiers.FullPath)); 711if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceTargetName)))
Instance\ProjectItemInstance.cs (3)
1422originalItemSpec = destinationItem.GetMetadata("OriginalItemSpec"); 1451.Where(metadatum => string.IsNullOrEmpty(destinationItem.GetMetadata(metadatum.Name))) 1470string destinationValue = destinationItem.GetMetadata(metadatum.Name);
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
900WriteMessageAligned(new String(' ', 4 * tabWidth) + metadatum.Key + " = " + item.GetMetadata(metadatum.Key as string), false);
TaskParameter.cs (4)
319escapedDefiningProject = EscapingUtilities.EscapeWithCaching(copyFrom.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectFullPath)); 422escapedDefiningProject = EscapingUtilities.EscapeWithCaching(wrappedItem.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectFullPath)); 892string originalItemSpec = destinationItem.GetMetadata("OriginalItemSpec"); 898string value = destinationItem.GetMetadata(entry.Key);
Microsoft.Build.Engine.OM.UnitTests (6)
Instance\ProjectItemInstance_Tests.cs (6)
172Assert.Equal("v1", toItem.GetMetadata("m1")); 173Assert.Equal("v2", toItem.GetMetadata("m2")); 333Assert.Equal("m1", taskItem.GetMetadata("m")); 357Assert.Equal("m;1", taskItem.GetMetadata("m;")); 369Assert.Equal("m;2", taskItem2.GetMetadata("m;")); 426Assert.Equal(String.Empty, taskItem.GetMetadata("m"));
Microsoft.Build.Engine.UnitTests (41)
BackEnd\SdkResultOutOfProc_Tests.cs (1)
201return targetresult.Items.Where(i => i.GetMetadata("Type").Equals(type, StringComparison.OrdinalIgnoreCase))
BackEnd\TranslationHelpers.cs (1)
206var value = taskItem.GetMetadata(name);
BuildEventArgsSerialization_Tests.cs (1)
1203return i.ItemSpec + string.Join(";", i.CloneCustomMetadata().Keys.OfType<string>().Select(k => i.GetMetadata(k)));
Construction\SolutionProjectGenerator_Tests.cs (7)
1278string skipNonexistentProjects = item.GetMetadata("SkipNonexistentProjects"); 1289Assert.Equal("Debug", item.GetMetadata("Configuration")); 1290Assert.Equal("Mixed Platforms", item.GetMetadata("Platform")); 1291Assert.Contains("<SolutionConfiguration>", item.GetMetadata("Content")); 1295Assert.Equal("Release", item.GetMetadata("Configuration")); 1296Assert.Equal("Any CPU", item.GetMetadata("Platform")); 1297Assert.Contains("<SolutionConfiguration>", item.GetMetadata("Content"));
Definition\ItemDefinitionGroup_Tests.cs (6)
609Assert.Equal("M-A(b)", withMetaItem.GetMetadata("MetaA")); 610Assert.Equal("M-B(b)", withMetaItem.GetMetadata("MetaB")); 648Assert.Equal("NEWMETA_A", withMetaItem.GetMetadata("MetaA")); 649Assert.Equal("M-B(b)", withMetaItem.GetMetadata("MetaB")); 692Assert.Equal("M-A(b)", withMetaItem.GetMetadata("MetaA")); 693Assert.Equal("M-B(b)", withMetaItem.GetMetadata("MetaB"));
FixPathOnUnix_Tests.cs (1)
70Log.LogMessage($"ItemMetadata: {name} = {item.GetMetadata(name)}");
ProjectCache\ProjectCacheTests.cs (2)
865itemResult.GetMetadata("File").ShouldBe(Path.GetFileName(projectPath)); 866itemResult.GetMetadata(expectedMetadata).ShouldBe("true");
TaskParameter_Tests.cs (18)
227Assert.Equal("a1", foo.GetMetadata("a")); 228Assert.Equal("b1", foo.GetMetadata("b")); 238Assert.Equal("a1", foo2.GetMetadata("a")); 239Assert.Equal("b1", foo2.GetMetadata("b")); 376Assert.Equal("a1%b1", foo.GetMetadata("a")); 377Assert.Equal("c1(d1", foo.GetMetadata("b")); 387Assert.Equal("a1%b1", foo2.GetMetadata("a")); 388Assert.Equal("c1(d1", foo2.GetMetadata("b")); 409Assert.Equal("a1%25b1", foo.GetMetadata("a")); 410Assert.Equal("c1%28d1", foo.GetMetadata("b")); 420Assert.Equal("a1%25b1", foo2.GetMetadata("a")); 421Assert.Equal("c1%28d1", foo2.GetMetadata("b")); 433Assert.Equal("a1%25b1", foo4.GetMetadata("a")); 434Assert.Equal("c1%28d1", foo4.GetMetadata("b")); 456Assert.Equal("a1(b1", foo.GetMetadata("a")); 457Assert.Equal("c1)d1", foo.GetMetadata("b")); 469Assert.Equal("a1(b1", foo2.GetMetadata("a")); 470Assert.Equal("c1)d1", foo2.GetMetadata("b"));
TestComparers\TaskItemComparer.cs (4)
56if (x.GetMetadata(metadataName) != y.GetMetadata(metadataName)) 68if (x.GetMetadata(metadataName) != y.GetMetadata(metadataName))
Microsoft.Build.Framework (1)
ITaskItemExtensions.cs (1)
50valueOrError = taskItem.GetMetadata(metadataName);
Microsoft.Build.Tasks.CodeAnalysis (14)
CommandLineBuilderExtension.cs (1)
254string metadataValue = parameter.GetMetadata(metadataNames[i]);
Csc.cs (1)
341string aliasString = reference.GetMetadata("Aliases");
GenerateMSBuildEditorConfig.cs (5)
78.AppendLine(prop.GetMetadata("Value")); 82var groupedItems = MetadataItems.GroupBy(i => NormalizeWithForwardSlash(i.GetMetadata("FullPath"))); 94string itemType = item.GetMetadata("ItemType"); 95string metadataName = item.GetMetadata("MetadataName"); 103.AppendLine(item.GetMetadata(metadataName));
MapSourceRoots.cs (6)
128if (!string.IsNullOrEmpty(root.GetMetadata(Names.SourceControl)) == sourceControlled) 131string nestedRoot = root.GetMetadata(Names.NestedRoot); 167string nestedRoot = root.GetMetadata(Names.NestedRoot); 170string containingRoot = root.GetMetadata(Names.ContainingRoot); 209var leftValue = left.GetMetadata(metadataName); 210var rightValue = right.GetMetadata(metadataName);
Utilities.cs (1)
38string metadataValue = item.GetMetadata(itemMetadataName);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (26)
MapSourceRootTests.cs (25)
20$" SourceControl='{sourceRoot.GetMetadata("SourceControl")}'" + 21$" RevisionId='{sourceRoot.GetMetadata("RevisionId")}'" + 22$" NestedRoot='{sourceRoot.GetMetadata("NestedRoot")}'" + 23$" ContainingRoot='{sourceRoot.GetMetadata("ContainingRoot")}'" + 24$" MappedPath='{sourceRoot.GetMetadata("MappedPath")}'" + 25$" SourceLinkUrl='{sourceRoot.GetMetadata("SourceLinkUrl")}'"; 61Assert.Equal(@"/_1/", task.MappedSourceRoots[0].GetMetadata("MappedPath")); 64Assert.Equal(@"/_2/", task.MappedSourceRoots[1].GetMetadata("MappedPath")); 67Assert.Equal(@"/_/", task.MappedSourceRoots[2].GetMetadata("MappedPath")); 68Assert.Equal(@"Git", task.MappedSourceRoots[2].GetMetadata("SourceControl")); 71Assert.Equal(@"/_/a/b/", task.MappedSourceRoots[3].GetMetadata("MappedPath")); 72Assert.Equal(@"Git", task.MappedSourceRoots[3].GetMetadata("SourceControl")); 73Assert.Equal(@"some value", task.MappedSourceRoots[3].GetMetadata("some metadata")); 110Assert.Equal(@"/_1/", task.MappedSourceRoots[0].GetMetadata("MappedPath")); 113Assert.Equal(@"/_/", task.MappedSourceRoots[1].GetMetadata("MappedPath")); 114Assert.Equal(@"Git", task.MappedSourceRoots[1].GetMetadata("SourceControl")); 117Assert.Equal(@"/_/|||:;/", task.MappedSourceRoots[2].GetMetadata("MappedPath")); 118Assert.Equal(@"Git", task.MappedSourceRoots[2].GetMetadata("SourceControl")); 187Assert.Equal(@"/_/", task.MappedSourceRoots[0].GetMetadata("MappedPath")); 190Assert.Equal(@"/_/a/a/", task.MappedSourceRoots[1].GetMetadata("MappedPath")); 193Assert.Equal(@"/_/a/b/", task.MappedSourceRoots[2].GetMetadata("MappedPath")); 196Assert.Equal(@"/_/a/c/", task.MappedSourceRoots[3].GetMetadata("MappedPath")); 225Assert.Equal(@"/_/", task.MappedSourceRoots[0].GetMetadata("MappedPath")); 228Assert.Equal(@"/_1/", task.MappedSourceRoots[1].GetMetadata("MappedPath")); 231Assert.Equal(@"/_2/", task.MappedSourceRoots[2].GetMetadata("MappedPath"));
TestUtilities\MSBuildUtil.cs (1)
33taskItem.Setup(x => x.GetMetadata(It.IsAny<string>())).Returns<string>(s => s switch
Microsoft.Build.Tasks.Core (160)
AssemblyDependency\GenerateBindingRedirects.cs (1)
370var maxVerStr = redirect.GetMetadata("MaxVersion");
AssemblyDependency\Reference.cs (1)
893SDKName = sourceItem.GetMetadata("SDKName");
AssemblyDependency\ReferenceTable.cs (13)
332string sdkName = resolvedSDK.GetMetadata("SDKName"); 550string executableExtension = referenceAssemblyName.GetMetadata(ItemMetadataNames.executableExtension); 556string fusionName = referenceAssemblyName.GetMetadata(ItemMetadataNames.fusionName); 591reference.HintPath = referenceAssemblyName.GetMetadata(ItemMetadataNames.hintPath); 627reference.AssemblyFolderKey = referenceAssemblyName.GetMetadata(ItemMetadataNames.assemblyFolderKey); 836string version = item.GetMetadata(ItemMetadataNames.assemblyVersion); 842string publicKeyToken = item.GetMetadata(ItemMetadataNames.publicKeyToken); 848string name = item.GetMetadata(ItemMetadataNames.assemblyName); 852name = item.GetMetadata(FileUtilities.ItemSpecModifiers.Filename); 929var implementationFile = reference.PrimarySourceItem.GetMetadata(ItemMetadataNames.winmdImplmentationFile); 1264string frameworkReferenceName = reference.PrimarySourceItem.GetMetadata(ItemMetadataNames.frameworkReferenceName); 2799referenceItem.SetMetadata(ItemMetadataNames.projectReferenceOriginalItemSpec, reference.PrimarySourceItem.GetMetadata("OriginalItemSpec")); 3034string meta = item.GetMetadata(key);
AssemblyDependency\ResolveAssemblyReference.cs (8)
1608string metadataValue = item.GetMetadata(metadataName); 2638Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.MismatchBetweenTargetedAndReferencedArch", ProcessorArchitectureToString(processorArchitecture), item.GetMetadata("OriginalItemSpec"), ProcessorArchitectureToString(assemblyArch)); 2642Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.MismatchBetweenTargetedAndReferencedArch", ProcessorArchitectureToString(processorArchitecture), item.GetMetadata("OriginalItemSpec"), ProcessorArchitectureToString(assemblyArch)); 2763if (String.IsNullOrEmpty(item.GetMetadata("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 (4)
142string dependentUpon = AssignedFiles[i].GetMetadata(ItemMetadataNames.dependentUpon); 143string existingCulture = AssignedFiles[i].GetMetadata(ItemMetadataNames.culture); 159ConversionUtilities.ValidBooleanFalse(AssignedFiles[i].GetMetadata(ItemMetadataNames.withCulture))); 180AssignedFiles[i].GetMetadata(ItemMetadataNames.culture),
AssignLinkMetadata.cs (4)
47string definingProject = item.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectFullPath); 48string definingProjectDirectory = item.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectDirectory); 49string fullPath = item.GetMetadata(FileUtilities.ItemSpecModifiers.FullPath); 52String.IsNullOrEmpty(item.GetMetadata("Link"))
AssignProjectConfiguration.cs (5)
204Log.LogMessageFromResources(MessageImportance.Low, "AssignProjectConfiguration.ProjectConfigurationResolutionSuccess", projectRef.ItemSpec, resolvedReference.GetMetadata(attrFullConfiguration)); 213string globalPropertiesToRemove = projectRef.GetMetadata("GlobalPropertiesToRemove"); 284if (String.Equals(projectRef.GetMetadata("Extension"), ".vcxproj", StringComparison.OrdinalIgnoreCase)) 347string buildReferenceMetadata = resolvedProjectWithConfiguration.GetMetadata(buildReferenceMetadataName); 348string referenceOutputAssemblyMetadata = resolvedProjectWithConfiguration.GetMetadata(referenceOutputAssemblyMetadataName);
AssignTargetPath.cs (2)
80string targetPath = Files[i].GetMetadata(ItemMetadataNames.targetPath); 85targetPath = Files[i].GetMetadata(ItemMetadataNames.link);
CombineTargetFrameworkInfoProperties.cs (1)
54root.Add(new XElement(item.ItemSpec, item.GetMetadata("Value")));
CommandLineBuilderExtension.cs (1)
251string metadataValue = parameter.GetMetadata(metadataNames[i]);
ConvertToAbsolutePath.cs (1)
64path.ItemSpec = EscapingUtilities.Escape(path.GetMetadata("FullPath"));
CreateCSharpManifestResourceName.cs (2)
44culture = item.GetMetadata("Culture"); 47treatAsCultureNeutral = ConversionUtilities.ValidBooleanFalse(item.GetMetadata("WithCulture"));
CreateItem.cs (1)
117if ((!PreserveExistingMetadata) || String.IsNullOrEmpty(newItem.GetMetadata(nameAndValue.Key)))
CreateManifestResourceName.cs (7)
148string dependentUpon = resourceFile.GetMetadata(ItemMetadataNames.dependentUpon); 150string fileType = resourceFile.GetMetadata("Type"); 169if (resourceFile.GetMetadata("WithCulture") == "true") 171string culture = resourceFile.GetMetadata("Culture"); 218resourceFile.GetMetadata(ItemMetadataNames.targetPath), 234if (string.IsNullOrEmpty(ResourceFilesWithManifestResourceNames[i].GetMetadata("LogicalName")) && 235string.Equals(ResourceFilesWithManifestResourceNames[i].GetMetadata("Type"), "Non-Resx", StringComparison.OrdinalIgnoreCase))
CreateVisualBasicManifestResourceName.cs (2)
43culture = item.GetMetadata("Culture"); 46treatAsCultureNeutral = ConversionUtilities.ValidBooleanFalse(item.GetMetadata("WithCulture"));
FileIO\GetFileHash.cs (1)
115Hash = Files[0].GetMetadata(MetadataName);
FindInvalidProjectReferences.cs (1)
88string referencePlatformMoniker = item.GetMetadata(ReferencePlatformMonikerMetadata);
GenerateApplicationManifest.cs (4)
231string name = item.GetMetadata("Name"); 256DefaultIcon = item.GetMetadata("DefaultIcon"), 257Description = item.GetMetadata("Description"), 259ProgId = item.GetMetadata("Progid")
GenerateManifestBase.cs (10)
92string hintPath = item.GetMetadata("HintPath"); 141string isPrimary = item.GetMetadata(ItemMetadataNames.isPrimary); 162file.IsDataFile = ConvertUtil.ToBoolean(item.GetMetadata("IsDataFile")); 335string targetPath = item.GetMetadata(ItemMetadataNames.targetPath); 364string value = item.GetMetadata("AssemblyType"); 385string value = item.GetMetadata("EmbedInteropTypes"); 395string value = item.GetMetadata("DependencyType"); 535string targetPath = item.GetMetadata(ItemMetadataNames.targetPath); 544file.Group = item.GetMetadata("Group"); 548file.IncludeHash = ConvertUtil.ToBoolean(item.GetMetadata("IncludeHash"), true);
GenerateResource.cs (2)
1473if (!set.Add(item.GetMetadata("FullPath"))) 2533string fusionName = assemblyFile.GetMetadata(ItemMetadataNames.fusionName);
GetCompatiblePlatform.cs (4)
59string referencedProjectPlatform = AssignedProjectsWithPlatform[i].GetMetadata("Platform"); 60string projectReferencePlatformsMetadata = AssignedProjectsWithPlatform[i].GetMetadata("Platforms"); 61string projectReferenceLookupTableMetadata = AssignedProjectsWithPlatform[i].GetMetadata("PlatformLookupTable"); 62string projectReferenceOverridePlatformNegotiationMetadata = AssignedProjectsWithPlatform[i].GetMetadata("OverridePlatformNegotiationValue");
GetSDKReferenceFiles.cs (29)
258string sdkName = resolvedSDKReference.GetMetadata("SDKName"); 259string sdkIdentity = resolvedSDKReference.GetMetadata("OriginalItemSpec"); 261string targetedConfiguration = resolvedSDKReference.GetMetadata("TargetedSDKConfiguration"); 262string targetedArchitecture = resolvedSDKReference.GetMetadata("TargetedSDKArchitecture"); 346Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictRedistDifferentSDK", winner.TargetPath, winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), redist.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile, redist.RedistFile); 350string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictRedistDifferentSDK", winner.TargetPath, winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), redist.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile, redist.RedistFile); 362if (bool.TryParse(resolvedSDKReference.GetMetadata("ExpandReferenceAssemblies"), out bool expandSDK) && expandSDK) 427Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictReferenceDifferentSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), reference.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation, reference.AssemblyLocation); 431string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictReferenceDifferentSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), reference.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation, reference.AssemblyLocation); 464outputItem.SetMetadata(ItemMetadataNames.msbuildReferenceFromSDK, reference.SDKReferenceItem.GetMetadata("OriginalItemSpec")); 465outputItem.SetMetadata(ItemMetadataNames.msbuildReferenceGrouping, reference.SDKReferenceItem.GetMetadata("OriginalItemSpec")); 466outputItem.SetMetadata(ItemMetadataNames.msbuildReferenceGroupingDisplayName, reference.SDKReferenceItem.GetMetadata("DisplayName")); 468string sdkIdentity = reference.SDKReferenceItem.GetMetadata("OriginalItemSpec"); 545outputItem.SetMetadata("OriginalItemSpec", file.SDKReferenceItem.GetMetadata("OriginalItemSpec")); 599Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictReferenceSameSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation.Replace(winner.SDKReferenceItem.ItemSpec, String.Empty), resolvedReference.AssemblyLocation.Replace(resolvedReference.SDKReferenceItem.ItemSpec, String.Empty)); 603string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictReferenceSameSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation.Replace(winner.SDKReferenceItem.ItemSpec, String.Empty), resolvedReference.AssemblyLocation.Replace(resolvedReference.SDKReferenceItem.ItemSpec, String.Empty)); 625string targetPathRoot = sdkReference.GetMetadata("CopyRedistToSubDirectory"); 639Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictRedistSameSDK", redistFile.TargetPath, redistFile.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty), redistFile.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty)); 643string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictRedistSameSDK", redistFile.TargetPath, redistFile.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty), redistFile.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty)); 663string sdkIdentity = sdk.GetMetadata("OriginalItemSpec"); 703sdk.GetMetadata(GetInstalledSDKLocations.SDKNameMetadataName), 706sdk.GetMetadata(GetInstalledSDKLocations.DirectoryRootsMetadataName), 707sdk.GetMetadata(GetInstalledSDKLocations.ExtensionDirectoryRootsMetadataName), 708sdk.GetMetadata(GetInstalledSDKLocations.RegistryRootMetadataName), 733bool.TryParse(sdkReferenceItem.GetMetadata("CopyLocalExpandedReferenceAssemblies"), out _copyLocal);
InstalledSDKResolver.cs (2)
57string configuration = resolvedSDK.GetMetadata("TargetedSDKConfiguration"); 58string architecture = resolvedSDK.GetMetadata("TargetedSDKArchitecture");
MetadataConversionUtilities.cs (1)
32string metadataValue = item.GetMetadata(itemMetadataName);
MSBuild.cs (11)
298if (TryParseSkipNonExistentProjects(project.GetMetadata("SkipNonexistentProjects"), out SkipNonExistentProjectsBehavior behavior)) 516if (!String.IsNullOrEmpty(projects[i].GetMetadata("Properties"))) 519log, ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("General.OverridingProperties", projectNames[i]), "Properties", projects[i].GetMetadata("Properties").Split(MSBuildConstants.SemicolonChar), 534string projectUndefineProperties = projects[i].GetMetadata("UndefineProperties"); 556if (!String.IsNullOrEmpty(projects[i].GetMetadata("AdditionalProperties"))) 559log, ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("General.AdditionalProperties", projectNames[i]), "AdditionalProperties", projects[i].GetMetadata("AdditionalProperties").Split(MSBuildConstants.SemicolonChar), 585if (!String.IsNullOrEmpty(projects[i].GetMetadata("ToolsVersion"))) 587toolsVersions[i] = projects[i].GetMetadata("ToolsVersion"); 652if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceProjectFile))) 654outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceProjectFile, projects[i].GetMetadata(FileUtilities.ItemSpecModifiers.FullPath)); 659if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceTargetName)))
RequiresFramework35SP1Assembly.cs (1)
153(string.Equals(candidateFile.GetMetadata("IncludeHash"), "false", StringComparison.OrdinalIgnoreCase)
ResolveManifestFiles.cs (20)
294targetPath = item.GetMetadata(ItemMetadataNames.targetPath); 331string copyLocal = item.GetMetadata(ItemMetadataNames.copyLocal); 343string itemCulture = item.GetMetadata("Culture"); 357string targetPath = item.GetMetadata(ItemMetadataNames.targetPath); 360targetPath = item.GetMetadata(ItemMetadataNames.destinationSubPath); 366string assemblyType = item.GetMetadata("AssemblyType"); 459string dependencyType = entry.item.GetMetadata("DependencyType"); 524string itemDestPath = item.GetMetadata(ItemMetadataNames.targetPath); 527itemDestPath = item.GetMetadata(ItemMetadataNames.destinationSubPath); 530string assemblyDestPath = assembly.GetMetadata(ItemMetadataNames.targetPath); 533assemblyDestPath = assembly.GetMetadata(ItemMetadataNames.destinationSubPath); 669string targetPath = entryPoint.GetMetadata("TargetPath"); 714string fileType = item.GetMetadata("FileType"); 778string str = item.GetMetadata("IsRedistRoot"); 805this.group = item.GetMetadata("Group"); 806this.state = StringToPublishState(item.GetMetadata("PublishState")); 807this.includeHash = item.GetMetadata("IncludeHash"); 808this.targetPath = item.GetMetadata(ItemMetadataNames.targetPath); 849string fusionName = item.GetMetadata(ItemMetadataNames.fusionName); 852string destSubDir = item.GetMetadata(ItemMetadataNames.destinationSubDirectory);
ResolveProjectBase.cs (4)
59string attrValue = reference.GetMetadata(missingAttribute); 86_cachedProjectReferencesByAbsolutePath.Add(reference.GetMetadata("FullPath")); // metadata is cached and used again later 125string projectGuid = projectRef.GetMetadata(attributeProject); 134string projectFullPath = projectRef.GetMetadata("FullPath"); // reserved metadata "FullPath" is used at it will cache the value
ResolveSDKReference.cs (13)
301string sdkName = installedsdk.GetMetadata(SDKName); 316string sdkName = referenceItem.GetMetadata(SDKName); 917System.Version.TryParse(sdk.GetMetadata(SDKPlatformVersion), out Version targetPlatformVersionFromItem); 924ResolvedItem.SetMetadata(GetInstalledSDKLocations.DirectoryRootsMetadataName, sdk.GetMetadata(GetInstalledSDKLocations.DirectoryRootsMetadataName)); 925ResolvedItem.SetMetadata(GetInstalledSDKLocations.ExtensionDirectoryRootsMetadataName, sdk.GetMetadata(GetInstalledSDKLocations.ExtensionDirectoryRootsMetadataName)); 926ResolvedItem.SetMetadata(GetInstalledSDKLocations.RegistryRootMetadataName, sdk.GetMetadata(GetInstalledSDKLocations.RegistryRootMetadataName)); 998string metadataValue = item.GetMetadata(metadataName); 1188string sdkConfiguration = ReferenceItem.GetMetadata(TargetedSDKConfiguration); 1191string sdkArchitecture = ReferenceItem.GetMetadata(TargetedSDKArchitecture).Length > 0 ? ReferenceItem.GetMetadata(TargetedSDKArchitecture) : targetArchitecture; 1439bool hasExpandReferenceAssemblies = bool.TryParse(ReferenceItem.GetMetadata(SDKManifest.Attributes.ExpandReferenceAssemblies), out result); 1440bool hasCopyRedist = bool.TryParse(ReferenceItem.GetMetadata(SDKManifest.Attributes.CopyRedist), out result); 1441bool hasCopyLocalExpandedReferenceAssemblies = bool.TryParse(ReferenceItem.GetMetadata(SDKManifest.Attributes.CopyLocalExpandedReferenceAssemblies), out result);
SetRidAgnosticValueForProjects.cs (4)
24var hasSingleTargetFrameworkString = p.GetMetadata("HasSingleTargetFramework"); 32var nearestTargetFramework = p.GetMetadata("NearestTargetFramework"); 38var targetFrameworksArray = p.GetMetadata("TargetFrameworks").Split(';'); 46var isRidAgnosticArray = p.GetMetadata("IsRidAgnostic").Split(';');
Microsoft.Build.Tasks.UnitTests (514)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (5)
3052Assert.Equal(loadModeResolvedFiles[i].GetMetadata("CopyLocal"), t.ResolvedFiles[i].GetMetadata("CopyLocal")); 3053Assert.Equal(loadModeResolvedFiles[i].GetMetadata("ResolvedFrom"), t.ResolvedFiles[i].GetMetadata("ResolvedFrom")); 3105string originalItemSpec = t.ResolvedFiles[i].GetMetadata("OriginalItemSpec");
AssignCulture_Tests.cs (15)
32Assert.Equal("fr", t.AssignedFiles[0].GetMetadata("Culture")); 52Assert.Equal("fr", t.AssignedFiles[0].GetMetadata("Culture")); 74Assert.Equal("fr", t.AssignedFiles[0].GetMetadata("Culture")); 95Assert.Equal("fr", t.AssignedFiles[0].GetMetadata("Culture")); 96Assert.Equal("My Random String", t.AssignedFiles[0].GetMetadata("MyAttribute")); 117Assert.Equal(String.Empty, t.AssignedFiles[0].GetMetadata("Culture")); 136Assert.Equal(String.Empty, t.AssignedFiles[0].GetMetadata("Culture")); 156Assert.Equal(String.Empty, t.AssignedFiles[0].GetMetadata("Culture")); 202Assert.Equal(culture, t.AssignedFiles[0].GetMetadata("Culture")); 224Assert.Equal(culture, t.AssignedFiles[0].GetMetadata("Culture")); 242Assert.Equal(culture, t.AssignedFiles[0].GetMetadata("Culture")); 259Assert.Equal("true", t.AssignedFiles[0].GetMetadata("WithCulture")); 260Assert.Equal(culture, t.AssignedFiles[0].GetMetadata("Culture")); 281Assert.Equal("en-GB", t.AssignedFiles[0].GetMetadata("Culture")); 302Assert.Equal("fr", t.AssignedFiles[0].GetMetadata("Culture"));
AssignLinkMetadata_Tests.cs (2)
81Assert.Equal(Path.Combine("SubFolder", "a.cs"), t.OutputItems[0].GetMetadata("Link")); 108Assert.Equal(Path.Combine("SubFolder", "a.cs"), t.OutputItems[0].GetMetadata("Link"));
AssignTargetPath_Tests.cs (5)
30t.AssignedFiles[0].GetMetadata("TargetPath").ShouldBe("abc.efg"); 44t.AssignedFiles[0].GetMetadata("TargetPath").ShouldBe("file.txt"); 65t.AssignedFiles[0].GetMetadata("TargetPath").ShouldBe("file.txt"); 82t.AssignedFiles[0].GetMetadata("TargetPath").ShouldBe(NativeMethodsShared.IsWindows ? @"f3\f4\file.txt" : "f3/f4/file.txt"); 108t.AssignedFiles[0].GetMetadata("TargetPath").ShouldBe(targetPath);
Copy_Tests.cs (9)
1620Assert.Equal("fr", t.DestinationFiles[1].GetMetadata("Locale")); 1628Assert.Equal("en-GB", t.SourceFiles[1].GetMetadata("Locale")); 1629Assert.Equal("taupe", t.SourceFiles[1].GetMetadata("Color")); 1632Assert.Equal("Pumpkin", t.DestinationFiles[1].GetMetadata("Flavor")); 1633Assert.Equal("Pumpkin", t.CopiedFiles[0].GetMetadata("Flavor")); 1636Assert.Equal("taupe", t.DestinationFiles[1].GetMetadata("Color")); 1637Assert.Equal("taupe", t.CopiedFiles[0].GetMetadata("Color")); 1640Assert.Equal("fr", t.DestinationFiles[1].GetMetadata("Locale")); 1641Assert.Equal("fr", t.CopiedFiles[0].GetMetadata("Locale"));
CreateCSharpManifestResourceName_Tests.cs (4)
809Assert.Equal(@"ResourceRoot.strings", resourceFiles[0].GetMetadata("ManifestResourceName")); 835Assert.Equal(@"ResourceRoot.pic.bmp", resourceFiles[0].GetMetadata("LogicalName")); 861Assert.Equal(@"foo", resourceFiles[0].GetMetadata("LogicalName")); 886Assert.Equal(String.Empty, resourceFiles[0].GetMetadata("LogicalName"));
CreateItem_Tests.cs (4)
218result.ResultsByTarget["Repro"].Items[0].GetMetadata("RecursiveDir").ShouldBe("Subdir" + Path.DirectorySeparatorChar); 236Assert.Equal("SomeValue", t.Include[0].GetMetadata("MyMetaData")); 259Assert.Equal("SomePreserveMeValue", t.Include[0].GetMetadata("MyMetaData")); 284Assert.Equal("SomeOverwriteValue", t.Include[0].GetMetadata("MyMetaData"));
Delete_Tests.cs (1)
36Assert.Equal("en-GB", t.DeletedFiles[0].GetMetadata("Locale"));
FindAppConfigFile_Tests.cs (5)
26Assert.Equal("targetpath", f.AppConfigFile.GetMetadata("TargetPath")); 39Assert.Equal("targetpath", f.AppConfigFile.GetMetadata("TargetPath")); 52Assert.Equal("targetpath", f.AppConfigFile.GetMetadata("TargetPath")); 95Assert.Equal(item2.GetMetadata("id"), f.AppConfigFile.GetMetadata("id"));
FindInList_Tests.cs (4)
65Assert.Equal(item1.GetMetadata("id"), f.ItemFound.GetMetadata("id")); 85Assert.Equal(item2.GetMetadata("id"), f.ItemFound.GetMetadata("id"));
GetCompatiblePlatform_Tests.cs (12)
40task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe("x64"); 63task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(""); 87task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe("x86"); 108task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe("AnyCPU"); 130task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 152task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe("x86"); 173task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 196task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 221task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 247task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe("x86"); 271task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 294task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty);
GetFileHash_Tests.cs (1)
97task.Items.ShouldAllBe(i => string.Equals(testBinary.FileHash, i.GetMetadata("FileHash"), StringComparison.Ordinal));
GetInstalledSDKLocations_Tests.cs (4)
293sdksAndVersions.Add(item.GetMetadata("SDKName"), item.GetMetadata("PlatformVersion")); 339extensionSDKs.Add(item.GetMetadata("SDKName"), item.ItemSpec); 413extensionSDKs.Add(item.GetMetadata("SDKName"), item.ItemSpec);
GetSDKReference_Tests.cs (220)
439Assert.Equal("WindowsRuntime 1.0;CLR V2.0.50727", t.References[0].GetMetadata("ImageRuntime"), true); 440Assert.Equal("A, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[0].GetMetadata("FusionName"), true); 441Assert.Equal("true", t.References[0].GetMetadata("WinMDFile"), true); 442Assert.Equal("Managed", t.References[0].GetMetadata("WinMDFileType"), true); 443Assert.Equal("true", t.References[0].GetMetadata("CopyLocal"), true); 444Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 445Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 448Assert.Equal("CLR V2.0.50727", t.References[4].GetMetadata("ImageRuntime"), true); 449Assert.Equal("E, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[4].GetMetadata("FusionName"), true); 450Assert.Equal("false", t.References[4].GetMetadata("WinMDFile"), true); 451Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 452Assert.Equal("true", t.References[4].GetMetadata("CopyLocal"), true); 453Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 454Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 457Assert.Equal("WindowsRuntime 1.0;CLR V2.0.50727", t.CopyLocalFiles[0].GetMetadata("ImageRuntime"), true); 458Assert.Equal("A, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.CopyLocalFiles[0].GetMetadata("FusionName"), true); 459Assert.Equal("true", t.CopyLocalFiles[0].GetMetadata("WinMDFile"), true); 460Assert.Equal("Managed", t.CopyLocalFiles[0].GetMetadata("WinMDFileType"), true); 461Assert.Equal("true", t.CopyLocalFiles[0].GetMetadata("CopyLocal"), true); 462Assert.Equal("SDkWithManifest, Version=2.0", t.CopyLocalFiles[0].GetMetadata("OriginalItemSpec"), true); 463Assert.Equal("GetSDKReferenceFiles", t.CopyLocalFiles[0].GetMetadata("ResolvedFrom"), true); 466Assert.Equal("CLR V2.0.50727", t.CopyLocalFiles[5].GetMetadata("ImageRuntime"), true); 467Assert.Equal("E, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.CopyLocalFiles[5].GetMetadata("FusionName"), true); 468Assert.Equal("false", t.CopyLocalFiles[5].GetMetadata("WinMDFile"), true); 469Assert.Empty(t.CopyLocalFiles[5].GetMetadata("WinMDFileType")); 470Assert.Equal("true", t.CopyLocalFiles[5].GetMetadata("CopyLocal"), true); 471Assert.Equal("SDkWithManifest, Version=2.0", t.CopyLocalFiles[5].GetMetadata("OriginalItemSpec"), true); 472Assert.Equal("GetSDKReferenceFiles", t.CopyLocalFiles[5].GetMetadata("ResolvedFrom"), true); 560Assert.Equal("WindowsRuntime 1.0;CLR V2.0.50727", t.References[0].GetMetadata("ImageRuntime"), true); 561Assert.Equal("A, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[0].GetMetadata("FusionName"), true); 562Assert.Equal("true", t.References[0].GetMetadata("WinMDFile"), true); 563Assert.Equal("Managed", t.References[0].GetMetadata("WinMDFileType"), true); 564Assert.Equal("false", t.References[0].GetMetadata("CopyLocal"), true); 565Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 566Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 569Assert.Equal("WindowsRuntime 1.0", t.References[1].GetMetadata("ImageRuntime"), true); 570Assert.Equal("B, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[1].GetMetadata("FusionName"), true); 571Assert.Equal("true", t.References[1].GetMetadata("WinMDFile"), true); 572Assert.Equal("Native", t.References[1].GetMetadata("WinMDFileType"), true); 573Assert.Equal("false", t.References[1].GetMetadata("CopyLocal"), true); 574Assert.Equal("SDkWithManifest, Version=2.0", t.References[1].GetMetadata("OriginalItemSpec"), true); 575Assert.Equal("GetSDKReferenceFiles", t.References[1].GetMetadata("ResolvedFrom"), true); 578Assert.Equal("CLR V2.0.50727", t.References[4].GetMetadata("ImageRuntime"), true); 579Assert.Equal("E, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[4].GetMetadata("FusionName"), true); 580Assert.Equal("false", t.References[4].GetMetadata("WinMDFile"), true); 581Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 582Assert.Equal("false", t.References[4].GetMetadata("CopyLocal"), true); 583Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 584Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 611string sdkIdentity = item.GetMetadata("OriginalItemSpec"); 641string sdkIdentity2 = item.GetMetadata("OriginalItemSpec"); 677engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 678engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 679engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 680engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 681engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 682engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 683engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 684engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 687Assert.Equal("true", t.References[0].GetMetadata("WinMDFile")); 688Assert.Equal("Managed", t.References[0].GetMetadata("WinMDFileType")); 689Assert.Equal("false", t.References[0].GetMetadata("CopyLocal")); 690Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 691Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 694Assert.Equal("false", t.References[4].GetMetadata("WinMDFile")); 695Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 696Assert.Equal("false", t.References[4].GetMetadata("CopyLocal")); 697Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 698Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 726engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 727engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 728engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 729engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 730engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 733Assert.Equal("false", t.References[0].GetMetadata("WinMDFile"), true); 734Assert.Empty(t.References[0].GetMetadata("WinMDFileType")); 735Assert.Equal("false", t.References[0].GetMetadata("CopyLocal"), true); 736Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 737Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 740Assert.Equal("false", t.References[4].GetMetadata("WinMDFile"), true); 741Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 742Assert.Equal("false", t.References[4].GetMetadata("CopyLocal"), true); 743Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 744Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 818engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 819engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 820engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 821engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 822engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 823engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 824engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 825engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 829Assert.Equal("SDKWithManifest, Version=2.0", t.References[0].GetMetadata("ReferenceGrouping")); 830Assert.Empty(t.References[0].GetMetadata("ReferenceGroupingDisplayName")); 831Assert.Equal("true", t.References[0].GetMetadata("WinMDFile")); 832Assert.Equal("Managed", t.References[0].GetMetadata("WinMDFileType")); 833Assert.Equal("false", t.References[0].GetMetadata("CopyLocal")); 834Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 835Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 838Assert.Equal("false", t.References[4].GetMetadata("WinMDFile")); 839Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 840Assert.Equal("false", t.References[4].GetMetadata("CopyLocal")); 841Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 842Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 870engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 871engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 872engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 873engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 874engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 875engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 876engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 877engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 881Assert.Equal("true", t.References[0].GetMetadata("WinMDFile")); 882Assert.Equal("SDKWithManifest, Version=2.0", t.References[0].GetMetadata("ReferenceGrouping")); 883Assert.Equal("Managed", t.References[0].GetMetadata("WinMDFileType")); 884Assert.Equal("SDKWithManifestDisplayName", t.References[0].GetMetadata("ReferenceGroupingDisplayName")); 885Assert.Equal("false", t.References[0].GetMetadata("CopyLocal")); 886Assert.Equal("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true); 887Assert.Equal("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true); 890Assert.Equal("false", t.References[4].GetMetadata("WinMDFile")); 891Assert.Empty(t.References[4].GetMetadata("WinMDFileType")); 892Assert.Equal("false", t.References[4].GetMetadata("CopyLocal")); 893Assert.Equal("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true); 894Assert.Equal("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true); 921engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 922engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 923engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 924engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 925engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 926engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 927engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 928engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 959engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath")); 960engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath")); 961engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath")); 962engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath")); 963engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath")); 966Assert.Equal("Super\\A.dll", t.RedistFiles[0].GetMetadata("TargetPath"), true); 967Assert.Equal("SDkWithManifest, Version=2.0", t.RedistFiles[0].GetMetadata("OriginalItemSpec"), true); 968Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[0].GetMetadata("ResolvedFrom"), true); 969Assert.Empty(t.RedistFiles[0].GetMetadata("Root")); 972Assert.Equal("Super\\ASubDirectory\\TwoDeep\\B.dll", t.RedistFiles[1].GetMetadata("TargetPath"), true); 973Assert.Equal("SDkWithManifest, Version=2.0", t.RedistFiles[1].GetMetadata("OriginalItemSpec"), true); 974Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[1].GetMetadata("ResolvedFrom"), true); 975Assert.Empty(t.RedistFiles[1].GetMetadata("Root")); 978Assert.Equal("Super\\B.PRI", t.RedistFiles[2].GetMetadata("TargetPath"), true); 979Assert.Equal("SDkWithManifest, Version=2.0", t.RedistFiles[2].GetMetadata("OriginalItemSpec"), true); 980Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[2].GetMetadata("ResolvedFrom"), true); 981Assert.Equal("Super", t.RedistFiles[2].GetMetadata("Root")); 984Assert.Equal("Super\\C.dll", t.RedistFiles[3].GetMetadata("TargetPath"), true); 985Assert.Equal("SDkWithManifest, Version=2.0", t.RedistFiles[3].GetMetadata("OriginalItemSpec"), true); 986Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[3].GetMetadata("ResolvedFrom"), true); 987Assert.Empty(t.RedistFiles[3].GetMetadata("Root")); 990Assert.Equal("Super\\D.dll", t.RedistFiles[4].GetMetadata("TargetPath"), true); 991Assert.Equal("SDkWithManifest, Version=2.0", t.RedistFiles[4].GetMetadata("OriginalItemSpec"), true); 992Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[4].GetMetadata("ResolvedFrom"), true); 993Assert.Empty(t.RedistFiles[4].GetMetadata("Root")); 1020engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath")); 1021engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath")); 1022engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath")); 1023engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath")); 1024engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath")); 1052engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath")); 1053engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath")); 1054engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath")); 1055engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath")); 1056engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath")); 1084engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath")); 1085engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath")); 1086engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath")); 1087engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath")); 1088engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath")); 1372Assert.Equal("SDK1\\A.dll", t.RedistFiles[0].GetMetadata("TargetPath"), true); 1373Assert.Equal("SDkWithManifest, Version=2.0", t.RedistFiles[0].GetMetadata("OriginalItemSpec"), true); 1374Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[0].GetMetadata("ResolvedFrom"), true); 1375Assert.Empty(t.RedistFiles[0].GetMetadata("Root")); 1378Assert.Equal("SDK2\\B.dll", t.RedistFiles[1].GetMetadata("TargetPath"), true); 1379Assert.Equal("AnotherSDK, Version=2.0", t.RedistFiles[1].GetMetadata("OriginalItemSpec"), true); 1380Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[1].GetMetadata("ResolvedFrom"), true); 1381Assert.Empty(t.RedistFiles[1].GetMetadata("Root")); 1384Assert.Equal("SDK1\\ASubDirectory\\TwoDeep\\B.dll", t.RedistFiles[2].GetMetadata("TargetPath"), true); 1385Assert.Equal("SDkWithManifest, Version=2.0", t.RedistFiles[2].GetMetadata("OriginalItemSpec"), true); 1386Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[2].GetMetadata("ResolvedFrom"), true); 1387Assert.Empty(t.RedistFiles[2].GetMetadata("Root")); 1390Assert.Equal("SDK2\\B.Pri", t.RedistFiles[3].GetMetadata("TargetPath"), true); 1391Assert.Equal("AnotherSDK, Version=2.0", t.RedistFiles[3].GetMetadata("OriginalItemSpec"), true); 1392Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[3].GetMetadata("ResolvedFrom"), true); 1393Assert.Equal("SDK2", t.RedistFiles[3].GetMetadata("Root"), true); 1396Assert.Equal("SDK1\\B.PRI", t.RedistFiles[4].GetMetadata("TargetPath"), true); 1397Assert.Equal("SDkWithManifest, Version=2.0", t.RedistFiles[4].GetMetadata("OriginalItemSpec"), true); 1398Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[4].GetMetadata("ResolvedFrom"), true); 1399Assert.Equal("SDK1", t.RedistFiles[4].GetMetadata("Root"), true); 1402Assert.Equal("SDK1\\C.dll", t.RedistFiles[5].GetMetadata("TargetPath"), true); 1403Assert.Equal("SDkWithManifest, Version=2.0", t.RedistFiles[5].GetMetadata("OriginalItemSpec"), true); 1404Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[5].GetMetadata("ResolvedFrom"), true); 1405Assert.Empty(t.RedistFiles[5].GetMetadata("Root")); 1408Assert.Equal("SDK1\\D.dll", t.RedistFiles[6].GetMetadata("TargetPath"), true); 1409Assert.Equal("SDkWithManifest, Version=2.0", t.RedistFiles[6].GetMetadata("OriginalItemSpec"), true); 1410Assert.Equal("GetSDKReferenceFiles", t.RedistFiles[6].GetMetadata("ResolvedFrom"), true); 1411Assert.Empty(t.RedistFiles[6].GetMetadata("Root"));
MakeDir_Tests.cs (1)
48Assert.Equal("en-GB", t.DirectoriesCreated[0].GetMetadata("Locale"));
Move_Tests.cs (9)
462Assert.Equal("fr", t.DestinationFiles[1].GetMetadata("Locale")); 470Assert.Equal("en-GB", t.SourceFiles[1].GetMetadata("Locale")); 471Assert.Equal("taupe", t.SourceFiles[1].GetMetadata("Color")); 474Assert.Equal("Pumpkin", t.DestinationFiles[1].GetMetadata("Flavor")); 475Assert.Equal("Pumpkin", t.MovedFiles[0].GetMetadata("Flavor")); 478Assert.Equal("taupe", t.DestinationFiles[1].GetMetadata("Color")); 479Assert.Equal("taupe", t.MovedFiles[0].GetMetadata("Color")); 482Assert.Equal("fr", t.DestinationFiles[1].GetMetadata("Locale")); 483Assert.Equal("fr", t.MovedFiles[0].GetMetadata("Locale"));
RemoveDir_Tests.cs (1)
42t.RemovedDirectories[0].GetMetadata("Locale").ShouldBe("en-GB");
ResolveNonMSBuildProjectOutput_Tests.cs (2)
232Assert.Equal("true", ((ITaskItem)resolvedOutputs[Path.Combine("obj", "managed.dll")]).GetMetadata("ManagedAssembly")); 233Assert.NotEqual("true", ((ITaskItem)resolvedOutputs[Path.Combine("obj", "unmanaged.dll")]).GetMetadata("ManagedAssembly"));
ResolveSDKReference_Tests.cs (201)
342Assert.Equal("true", reference.ResolvedItem.GetMetadata("RuntimeReferenceOnly")); 1097Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 1098Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("PlatformIdentity")); 1099Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 1100Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true); 1101Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 1102Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 1103Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 1104Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 1105Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 1135Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 1136Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 1137Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 1138Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 1141Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 1142Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 1143Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 1176Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 1177Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 1178Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 1179Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 1182Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration")); 1183Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture")); 1184Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 1214Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 1215Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 1216Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 1217Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 1218Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 1219Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 1220Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 1253Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 1254Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 1255Assert.Equal("GoodTestSDK", t.ResolvedSDKReferences[0].GetMetadata("SimpleName"), true); 1256Assert.Equal("2.0", t.ResolvedSDKReferences[0].GetMetadata("Version"), true); 1257Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 1258Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 1259Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 1260Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 1261Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 1287Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 1288Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 1289Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 1290Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 1291Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 1292Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 1293Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 1358Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 1359Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 1360Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("SDKType")); 1361Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("DisplayName")); 1362Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 1363Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 1364Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 1365Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 1366Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 1367Assert.Equal("GoodTestSDK, Version=2.0", t.ResolvedSDKReferences[0].GetMetadata("SDKName"), true); 1760Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 1761Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 1762Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("SDKType")); 1763Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("SupportedArchitectures")); 1764Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("ProductFamilyName")); 1765Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("DisplayName")); 1766Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("ArchitectureForRuntime")); 1767Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("MaxPlatformVersion")); 1768Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("MaxOSVersionTested")); 1769Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("MinOSVersion")); 1770Assert.Equal("Allow", t.ResolvedSDKReferences[0].GetMetadata("SupportsMultipleVersions"), true); 1771Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory")); 1772Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 1773Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 1774Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 1775Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 1776Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 1859Assert.Equal("MetadataIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 1860Assert.Equal("PlatformIdentity", t.ResolvedSDKReferences[0].GetMetadata("PlatformIdentity")); 1861Assert.Equal("Metadata AppxLocation", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 1862Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType")); 1863Assert.Equal("Error", t.ResolvedSDKReferences[0].GetMetadata("SupportsMultipleVersions")); 1864Assert.Equal("ManifestDisplayName", t.ResolvedSDKReferences[0].GetMetadata("DisplayName")); 1865Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist")); 1866Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies")); 1867Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies")); 1868Assert.Equal("Custom", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration")); 1869Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture")); 1870Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 1871Assert.Equal("MyRedistSubDirectory", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory")); 1872Assert.Equal("9.0", t.ResolvedSDKReferences[0].GetMetadata("MaxPlatformVersion")); 1873Assert.Equal("3.3.3", t.ResolvedSDKReferences[0].GetMetadata("MaxOSVersionTested")); 1874Assert.Equal("3.3.3", t.ResolvedSDKReferences[0].GetMetadata("MinOSVersion")); 1938Assert.Equal("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 1939Assert.Equal("Neutral|RetailX86Location", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 1940Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType")); 1941Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true); 1942Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 1943Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 1944Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 1945Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 1946Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 1947Assert.Equal("GoodTestSDK\\Redist", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory"), true); 2009Assert.Equal("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true); 2010Assert.Equal("Neutral|RetailNeutralLocation", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true); 2011Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true); 2012Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 2013Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 2014Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 2015Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 2016Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 2073Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 2074Assert.Empty(t.ResolvedSDKReferences[0].GetMetadata("AppXLocation")); 2075Assert.Equal("PlatformID", t.ResolvedSDKReferences[0].GetMetadata("PlatformIdentity"), true); 2076Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true); 2077Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true); 2078Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 2079Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 2080Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 2081Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 2082Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 2149Assert.Equal("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true); 2150Assert.Equal("Good Platform", t.ResolvedSDKReferences[0].GetMetadata("PlatformIdentity"), true); 2151Assert.Equal("Neutral|Location", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true); 2152Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true); 2153Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 2154Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 2155Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 2156Assert.Equal("X86", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 2157Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 2217Assert.Equal("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 2218Assert.Equal("Good Platform", t.ResolvedSDKReferences[0].GetMetadata("PlatformIdentity")); 2219Assert.Equal("arm|ARMAppx", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true); 2220Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true); 2221Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 2222Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 2223Assert.Equal("Debug", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 2224Assert.Equal("arm", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 2225Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 2287Assert.Equal("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true); 2288Assert.Equal("Good Platform", t.ResolvedSDKReferences[0].GetMetadata("PlatformIdentity"), true); 2289Assert.Equal("arm|ARMAppx|x64|x64Appx|x86|x86Appx", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true); 2290Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true); 2291Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 2292Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 2293Assert.Equal("Debug", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 2294Assert.Equal("arm", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 2295Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 2501Assert.Equal("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true); 2502Assert.Equal("x64|RetailX64Location|x86|RetailX86Location", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true); 2503Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true); 2504Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true); 2505Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 2506Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 2507Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 2508Assert.Equal("X86", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 2509Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 2510Assert.Equal("GoodTestSDK\\Redist", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory"), true); 2575Assert.Equal("MyFamily", t.ResolvedSDKReferences[0].GetMetadata("ProductFamilyName")); 2642Assert.Equal("MetadataFamily", t.ResolvedSDKReferences[0].GetMetadata("ProductFamilyName")); 2706Assert.Equal("Allow", t.ResolvedSDKReferences[0].GetMetadata("SupportsMultipleVersions")); 2774Assert.Equal("Warning", t.ResolvedSDKReferences[0].GetMetadata("SupportsMultipleVersions")); 3258Assert.Equal("Allow", t.ResolvedSDKReferences[0].GetMetadata("SupportsMultipleVersions")); 3262Assert.Equal(manifestEntry, t.ResolvedSDKReferences[0].GetMetadata("SupportsMultipleVersions")); 3331Assert.Equal("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true); 3332Assert.Equal("Arm|RetailArmLocation|Neutral|NeutralLocation|X64|RetailX64Location|X86|RetailX86Location", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true); 3333Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true); 3334Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true); 3335Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 3336Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 3337Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 3338Assert.Equal("X86", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 3339Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 3340Assert.Equal("GoodTestSDK\\Redist", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory"), true); 3475Assert.Equal("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity")); 3476Assert.Equal("Neutral|NeutralLocation|X64|RetailX64Location|X86|RetailX86Location", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true); 3477Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true); 3478Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true); 3479Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 3480Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 3481Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 3482Assert.Equal("X86", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 3483Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 3484Assert.Equal("GoodTestSDK\\Redist", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory"), true); 3611Assert.Equal("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true); 3612Assert.Equal("Neutral|RetailNeutralLocation", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true); 3613Assert.Equal("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true); 3614Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true); 3615Assert.Equal("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true); 3616Assert.Equal("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true); 3617Assert.Equal("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true); 3618Assert.Equal("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true); 3619Assert.Equal(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true); 3620Assert.Equal("GoodTestSDK\\Redist", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory"), true); 4172Assert.Equal("Retail", resolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration")); 4173Assert.Equal("Neutral", resolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture")); 4302Assert.Equal("http://msdn.microsoft.com/MySDK", resolvedSDKReferences1[0].GetMetadata("MoreInfo")); 4303Assert.Equal("9.0", resolvedSDKReferences1[0].GetMetadata("MaxPlatformVersion")); 4304Assert.Equal("6.2.0", resolvedSDKReferences1[0].GetMetadata("MinOSVersion")); 4305Assert.Equal("6.2.3", resolvedSDKReferences1[0].GetMetadata("MaxOSVersionTested")); 4311Assert.Equal("http://msdn.microsoft.com/MySDK", resolvedSDKReferences2[0].GetMetadata("MoreInfo")); 4312Assert.Equal(String.Empty, resolvedSDKReferences2[0].GetMetadata("MaxPlatformVersion")); 4313Assert.Equal(String.Empty, resolvedSDKReferences2[0].GetMetadata("MinOSVersion")); 4314Assert.Equal(String.Empty, resolvedSDKReferences2[0].GetMetadata("MaxOSVersionTested"));
ResourceHandling\GenerateResource_Tests.cs (9)
73Assert.Equal("InputValue", t.OutputResources[0].GetMetadata("Attribute")); 128Assert.Equal(expectedOutFile0, t.Sources[0].GetMetadata("OutputResource")); 129Assert.Equal(expectedOutFile1, t.Sources[1].GetMetadata("OutputResource")); 130Assert.Equal(expectedOutFile2, t.Sources[2].GetMetadata("OutputResource")); 131Assert.Equal(expectedOutFile3, t.Sources[3].GetMetadata("OutputResource")); 161Assert.Equal("InputValue", t.OutputResources[0].GetMetadata("Attribute")); 2201Assert.Equal("fr", t.OutputResources[0].GetMetadata("Locale")); 2207Assert.Equal("Pumpkin", t.OutputResources[0].GetMetadata("Flavor")); 2237Assert.Equal("en-GB", t.OutputResources[0].GetMetadata("Locale"));
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
416string expectedMetadataValue = expectedItem.GetMetadata(metadataName); 417string actualMetadataValue = actualItem.GetMetadata(metadataName);
Microsoft.Build.Utilities.Core (3)
TaskItem.cs (3)
133_definingProject = EscapingUtilities.EscapeWithCaching(sourceItem.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectFullPath)); 303string originalItemSpec = destinationItem.GetMetadata("OriginalItemSpec"); 345value = destinationItem.GetMetadata(entry.Key);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
MSBuild\ProjectFile\Extensions.cs (2)
60var aliasesText = item.GetMetadata(MetadataNames.Aliases); 69var referenceOutputAssemblyText = item.GetMetadata(MetadataNames.ReferenceOutputAssembly);
MSBuild\ProjectFile\ProjectFile.cs (3)
267var linkPath = documentItem.GetMetadata(MetadataNames.Link); 298=> !RoslynString.IsNullOrEmpty(documentItem.GetMetadata(MetadataNames.Link)); 323var link = documentItem.GetMetadata(MetadataNames.Link);
Microsoft.DotNet.Arcade.Sdk (6)
src\DownloadFile.cs (1)
81var encodedToken = uriConfig.GetMetadata("token");
src\GenerateChecksums.cs (1)
27string destinationPath = item.GetMetadata("DestinationPath");
src\GenerateSourcePackageSourceLinkTargetsFile.cs (1)
63var url = sourceRoot.GetMetadata("SourceLinkUrl");
src\GetAssemblyFullName.cs (1)
29var assemblyPath = string.IsNullOrEmpty(PathMetadata) ? item.ItemSpec : item.GetMetadata(PathMetadata);
src\GroupItemsBy.cs (2)
65var left = result.GetMetadata(metadataName); 66var right = item.GetMetadata(metadataName);
Microsoft.DotNet.Arcade.Sdk.Tests (3)
GetAssemblyFullNameTests.cs (2)
37}, task.ItemsWithFullName.Select(i => i.GetMetadata("SomeFullName"))); 64}, task.ItemsWithFullName.Select(i => i.GetMetadata("SomeFullName")));
GroupItemsByTests.cs (1)
38}, task.GroupedItems.Select(i => $"{i.ItemSpec}: {string.Join(" ", inspectMetadata.Select(m => $"{m}='{i.GetMetadata(m)}'"))}"));
Microsoft.DotNet.Build.Tasks.Feed (14)
src\BlobArtifactModelFactory.cs (2)
36string path = item.GetMetadata("RelativeBlobPath"); 44Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
src\BlobFeedAction.cs (2)
78string relativeBlobPath = item.GetMetadata("RelativeBlobPath"); 83string recursiveDir = item.GetMetadata("RecursiveDir");
src\BuildModelFactory.cs (1)
156if (string.Equals(artifact.GetMetadata("ExcludeFromManifest"), "true", StringComparison.OrdinalIgnoreCase))
src\common\UploadToAzure.cs (1)
90string relativeBlobPath = item.GetMetadata("RelativeBlobPath");
src\model\SetupTargetFeedConfigV3.cs (3)
62FeedKeys = feedKeys.ToImmutableDictionary(i => i.ItemSpec, i => i.GetMetadata("Key")); 63FeedSasUris = feedSasUris.ToImmutableDictionary(i => i.ItemSpec, i => ConvertFromBase64(i.GetMetadata("Base64Uri"))); 64FeedOverrides = feedOverrides.ToImmutableDictionary(i => i.ItemSpec, i => i.GetMetadata("Replacement"));
src\PackageArtifactModelFactory.cs (1)
36Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
src\PushToBuildStorage.cs (4)
143Where(i => !string.Equals(i.GetMetadata("ExcludeFromManifest"), "true", StringComparison.OrdinalIgnoreCase)); 176var isFlatString = i.GetMetadata("PublishFlatContainer"); 274if (string.Equals(item.GetMetadata("IsShipping"), "true", StringComparison.OrdinalIgnoreCase)) 287string relativeBlobPath = item.GetMetadata("RelativeBlobPath");
Microsoft.DotNet.Build.Tasks.Installers (13)
src\CreateControlFile.cs (2)
57string version = depend.GetMetadata("Version"); 74writer.WriteLine($"{property.ItemSpec}: {property.GetMetadata("Value")}");
src\CreateRpmPackage.cs (2)
96builder.AddRequiredCapability(require.ItemSpec, require.GetMetadata("Version")); 116builder.AddScript(script.GetMetadata("Kind"), File.ReadAllText(script.ItemSpec));
src\GenerateJsonObjectString.cs (2)
107string stringValue = item.GetMetadata("String"); 108string objectValue = item.GetMetadata("Object");
src\GenerateMacOSDistributionFile.cs (6)
66new XAttribute("id", component.GetMetadata("FileNameWithExtension")), 68new XAttribute("title", component.GetMetadata("Title")), 69new XAttribute("description", component.GetMetadata("Description")), 70new XElement("pkg-ref", new XAttribute("id", component.GetMetadata("FileNameWithExtension"))))); 91new XAttribute("id", component.GetMetadata("FileNameWithExtension")), 92component.GetMetadata("FileNameWithExtension")));
src\StabilizeWixFileId.cs (1)
59string replacement = file.GetMetadata("ReplacementId");
Microsoft.DotNet.Build.Tasks.Packaging (85)
ApplyBaseLine.cs (5)
69versions.Add(new Version(baseLinePackage.GetMetadata("Version"))); 80Version.TryParse(dependency.GetMetadata("Version"), out requestedVersion); 105var index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath"))); 113Version.TryParse(dependency.GetMetadata("Version"), out packageVersion); 114Version.TryParse(dependency.GetMetadata("AssemblyVersion"), out assemblyVersion);
ApplyMetaPackages.cs (3)
56var index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath"))); 70var tfmSpecificSupression = metapackage.GetMetadata("TargetFramework"); 99var tfm = originalDependency.GetMetadata("TargetFramework");
ApplyPreReleaseSuffix.cs (3)
66_index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath"))); 85string packageVersionString = originalPackage.GetMetadata("Version"); 123Version newVersion = ParseAs3PartVersion(stablePackage.GetMetadata("Version"));
CreateTrimDependencyGroups.cs (5)
68var index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath"))); 182public TaskItemPackageDependency(ITaskItem item) : base(item.ItemSpec, TryParseVersionRange(item.GetMetadata("Version"))) 185TargetFramework = NuGetFramework.Parse(item.GetMetadata(nameof(TargetFramework))); 199string versionString = dependency.GetMetadata("AssemblyVersion"); 202versionString = dependency.GetMetadata("Version");
Extensions.cs (8)
22var metadataValue = taskItem.GetMetadata(metadataName)?.Trim(); 29var metadataValue = taskItem.GetMetadata(metadataName); 40var metadataValue = taskItem.GetMetadata(Metadata.TargetFramework); 52var metadataValue = taskItem.GetMetadata(Metadata.TargetFrameworkMoniker); 63var packageDirectoryName = taskItem.GetMetadata(Metadata.PackageDirectory); 77var metadataValue = taskItem.GetMetadata(Metadata.Version); 88var metadataValue = taskItem.GetMetadata(metadataName); 98var metadataValue = taskItem.GetMetadata(metadataName)?.Trim();
FilterUnknownPackages.cs (1)
41var index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath")));
GenerateNuSpec.cs (4)
257where !f.GetMetadata(Metadata.FileTarget).StartsWith("$none$", StringComparison.OrdinalIgnoreCase) 260Source = f.GetMetadata(Metadata.FileSource), 262Target = f.GetMetadata(Metadata.FileTarget).Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar), 263Exclude = f.GetMetadata(Metadata.FileExclude)
GeneratePackageReport.cs (2)
203var runtimeIds = framework.GetMetadata("RuntimeIDs")?.Split(';'); 236var index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath")));
GenerateRuntimeDependencies.cs (7)
70sourceRuntimeFilePath = RuntimeJsonTemplate.GetMetadata("FullPath"); 72string destRuntimeFilePath = RuntimeJson.GetMetadata("FullPath"); 78string alias = dependency.GetMetadata("PackageAlias"); 89var runtimeGroups = Dependencies.GroupBy(d => d.GetMetadata("TargetRuntime")); 151string targetPackageId = dependency.GetMetadata("TargetPackage"); 152string targetPackageAlias = dependency.GetMetadata("TargetPackageAlias"); 175string dependencyVersionString = dependency.GetMetadata("version");
GetInboxFrameworks.cs (1)
57var index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath")));
GetLastStablePackage.cs (4)
82var versionString = latestPackage.GetMetadata("Version"); 103var versionString = stablePackage.GetMetadata("Version"); 130var index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath"))); 138var versionString = latestPackage.GetMetadata("Version");
GetLayoutFiles.cs (1)
49var rids = i.GetMetadata("RuntimeIds");
GetPackageDescription.cs (1)
53string descriptionPath = DescriptionFile.GetMetadata("FullPath");
GetPackageDestination.cs (1)
118runtime = packageTargetFramework.GetMetadata("TargetRuntime");
GetPackageFromModule.cs (2)
44var index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath"))); 54modulesToPackages.Add(modulePackage.ItemSpec, modulePackage.GetMetadata("Package"));
GetPackageVersion.cs (2)
36var versionsToConsider = Files.Where(f => !String.IsNullOrEmpty(f.GetMetadata("AssemblyVersion"))) 37.Select(f => new Version(f.GetMetadata("AssemblyVersion")));
HarvestPackage.cs (6)
149_packageFolders.Add(runtimePackage.ItemSpec, LocatePackageFolder(runtimePackage.ItemSpec, runtimePackage.GetMetadata("Version"))); 179var runtimeIds = framework.GetMetadata("RuntimeIDs")?.Split(';'); 271.Where(f => IsIncludedExtension(f.GetMetadata("Extension"))) 324var remappedTargetPath = includeItem?.GetMetadata("TargetPath"); 332var additionalTargetPaths = includeItem?.GetMetadata("AdditionalTargetPath"); 393bool.TryParse(liveFile.OriginalItem.GetMetadata("Preserve"), out preserve);
NuGetPack.cs (1)
158string nuspecPath = nuspec.GetMetadata("FullPath");
PackageItem.cs (4)
18SourcePath = item.GetMetadata("FullPath"); 25TargetPath = item.GetMetadata(nameof(TargetPath)); 69string versionString = OriginalItem.GetMetadata("AssemblyVersion"); 103var value = OriginalItem.GetMetadata(name);
PromoteDependencies.cs (4)
42index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath"))); 109Version = item.GetMetadata("Version"); 110IsReference = item.GetMetadata("TargetPath").StartsWith("ref/", System.StringComparison.OrdinalIgnoreCase); 111TargetFramework = item.GetMetadata(TargetFrameworkMetadataName);
SplitDependenciesBySupport.cs (2)
69string fx = originalItem.GetMetadata("TargetFramework"); 79string minNSFx = originalItem.GetMetadata("MinimumNETStandard");
SplitReferences.cs (4)
60var index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath"))); 73string referenceVersion = reference.GetMetadata("Version"); 110Version existingVersion = Version.Parse(existingItem.GetMetadata("Version")); 111Version newVersion = Version.Parse(existingItem.GetMetadata("Version"));
UpdatePackageIndex.cs (9)
89string indexFilePath = PackageIndexFile.GetMetadata("FullPath"); 100foreach(var package in Packages.NullAsEmpty().Select(f => f.GetMetadata("FullPath"))) 106foreach(var packageFolder in PackageFolders.NullAsEmpty().Select(f => f.GetMetadata("FullPath"))) 136var version = baselinePackage.GetMetadata("Version"); 147var version = stablePackage.GetMetadata("Version"); 157var package = moduleToPackage.GetMetadata("Package"); 164index.MergeFrameworkLists(InboxFrameworkListFolder.GetMetadata("FullPath")); 171var layoutDirectory = inboxFrameworkLayoutFolder.GetMetadata("FullPath"); 172var targetFramework = NuGetFramework.Parse(inboxFrameworkLayoutFolder.GetMetadata("TargetFramework"));
ValidatePackage.cs (3)
378var index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath"))); 477string runtimeIdList = framework.GetMetadata("RuntimeIDs"); 524string version = supportedFramework.GetMetadata("Version");
ValidationTask.cs (2)
106AddSuppression(suppression.ItemSpec, suppression.GetMetadata("Value")); 150_index = PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath")));
Microsoft.DotNet.Build.Tasks.Packaging.Tests (42)
ApplyBaseLineTests.cs (4)
49item.GetMetadata("Version").Should().Be("4.0.21"); 78item.GetMetadata("Version").Should().Be("4.1.0"); 106item.GetMetadata("Version").Should().Be("4.0.21"); 135item.GetMetadata("Version").Should().Be("4.0.0");
CreateTrimDependencyGroupsTests.cs (26)
143item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("win8")).Should().HaveCount(1), 144item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monoandroid10")).Should().HaveCount(1), 145item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monotouch10")).Should().HaveCount(1), 146item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net45")).Should().HaveCount(1), 147item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("wp8")).Should().HaveCount(1), 148item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("wpa81")).Should().HaveCount(1), 149item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinios10")).Should().HaveCount(1), 150item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarintvos10")).Should().HaveCount(1), 151item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinwatchos10")).Should().HaveCount(1), 152item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinmac20")).Should().HaveCount(1), 153item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable45-net45+win8+wp8+wpa81")).Should().HaveCount(1) 230task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net45") && 236task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net451") && 242task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable45-net45+win8+wp8+wpa81") && 248task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable46-net451+win81+wpa81") && 356var actualTFMs = task.TrimmedDependencies.Select(d => d.GetMetadata("TargetFramework")); 393item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("win8")).Should().HaveCount(1), 394item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monoandroid10")).Should().HaveCount(1), 395item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monotouch10")).Should().HaveCount(1), 396item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net45")).Should().HaveCount(1), 397item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("wpa81")).Should().HaveCount(1), 398item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinios10")).Should().HaveCount(1), 399item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarintvos10")).Should().HaveCount(1), 400item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinwatchos10")).Should().HaveCount(1), 401item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinmac20")).Should().HaveCount(1), 402item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable45-net45+win8+wpa81")).Should().HaveCount(1)
GetLastStablePackageTests.cs (6)
48item.GetMetadata("Version").Should().Be("1.1.0"); 76item.GetMetadata("Version").Should().Be("1.0.0"); 103item.GetMetadata("Version").Should().Be("1.0.0"); 153item.GetMetadata("Version").Should().Be("1.0.0"); 181item.GetMetadata("Version").Should().Be("1.1.0"); 208item.GetMetadata("Version").Should().Be("1.1.0");
HarvestPackageTests.cs (6)
106var ns10asset = task.HarvestedFiles.FirstOrDefault(f => f.GetMetadata("TargetFramework") == "netstandard1.0"); 108ns10asset.GetMetadata("AssemblyVersion").Should().Be("1.2.3.0"); 133var net46asset = task.HarvestedFiles.FirstOrDefault(f => f.GetMetadata("TargetFramework") == "net46"); 135net46asset.GetMetadata("AssemblyVersion").Should().Be("4.0.1.0"); 166task.HarvestedFiles.Should().Contain(f => f.GetMetadata("AssemblyVersion") == "4.1.0.0"); 168task.SupportedFrameworks.Should().NotContain(f => f.GetMetadata("Version") == "unknown");
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
ChooseBestP2PTargetFrameworkTask.cs (1)
83string referencedProjectFrameworkString = project.GetMetadata(TARGET_FRAMEWORKS);
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
45var value = string.IsNullOrEmpty(InputMetadata) ? item.ItemSpec : item.GetMetadata(InputMetadata);
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (2)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (2)
40}, task.OutputItems.Select(i => i.GetMetadata("SomeOutput"))); 62}, task.OutputItems.Select(i => i.GetMetadata("SomeOutput")));
Microsoft.DotNet.Build.Tasks.Workloads (29)
CreateVisualStudioWorkload.wix.cs (9)
359if (_supportsMachineArch[sdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 362new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, sdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio) : 363new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, sdkFeatureBand, chip: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio); 408if (_supportsMachineArch[manifestPackage.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 411new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, manifestPackage.SdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio) : 412new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, manifestPackage.SdkFeatureBand, chip: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio); 437if (_supportsMachineArch[msi.Package.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 442new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, msi.Package.SdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform)) : 443new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, msi.Package.SdkFeatureBand, chip: msiOutputItem.GetMetadata(Metadata.Platform));
CreateVisualStudioWorkloadSet.wix.cs (1)
83MsiSwixProject swixProject = new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, workloadSetPackage.SdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform));
Msi\MsiBase.wix.cs (1)
243NuGetPackageFiles[msi.GetMetadata(Workloads.Metadata.FullPath)] = @"\data";
Msi\MsiPayloadPackageProject.wix.cs (1)
36string platform = msi.GetMetadata(Metadata.Platform);
StringExtensions.cs (1)
46str = str.Replace(item.ItemSpec, item.GetMetadata(Metadata.Replacement));
Swix\MsiSwixProject.wix.cs (4)
67string chip = null, string machineArch = null, string productArch = null, bool outOfSupport = false) : base(msi.GetMetadata(Metadata.SwixPackageId), new Version(msi.GetMetadata(Metadata.Version)), baseIntermediateOutputPath, baseOutputPath, outOfSupport) 73Platform = msi.GetMetadata(Metadata.Platform); 92ReplacementTokens[SwixTokens.__VS_PAYLOAD_SOURCE__] = msi.GetMetadata(Metadata.FullPath);
Swix\SwixComponent.cs (9)
162Version componentVersion = resourceItem != null && !string.IsNullOrWhiteSpace(resourceItem.GetMetadata(Metadata.Version)) ? 163new Version(resourceItem.GetMetadata(Metadata.Version)) : 166bool.TryParse(resourceItem?.GetMetadata(Metadata.AdvertisePackage), out bool advertise); 171resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Title)) ? resourceItem.GetMetadata(Metadata.Title) : workload.Description ?? throw new Exception(Strings.ComponentTitleCannotBeNull), 172resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Description)) ? resourceItem.GetMetadata(Metadata.Description) : workload.Description ?? throw new Exception(Strings.ComponentDescriptionCannotBeNull), 174resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Category)) ? resourceItem.GetMetadata(Metadata.Category) : DefaultValues.ComponentCategory ?? throw new Exception(Strings.ComponentCategoryCannotBeNull),
WorkloadManifestPackage.wix.cs (1)
95SupportsMachineArch = bool.TryParse(package.GetMetadata(Metadata.SupportsMachineArch), out bool supportsMachineArch) ? supportsMachineArch : false;
WorkloadPackageBase.cs (2)
323if (!string.IsNullOrWhiteSpace(package.GetMetadata(Metadata.MsiVersion))) 326return new(package.GetMetadata(Metadata.MsiVersion));
Microsoft.DotNet.Build.Tasks.Workloads.Tests (19)
CreateVisualStudioWorkloadSetTests.cs (3)
49ITaskItem msi = createWorkloadSetTask.Msis.Where(i => i.GetMetadata(Metadata.Platform) == "x64").FirstOrDefault(); 69Assert.Equal(DefaultValues.PackageTypeMsiWorkloadSet, workloadSetSwixItem.GetMetadata(Metadata.PackageType)); 80s => s.GetMetadata(Metadata.PackageType).Equals(DefaultValues.PackageTypeWorkloadSetPackageGroup)).
CreateVisualStudioWorkloadTests.cs (3)
152IEnumerable<ITaskItem> swixComponentProjects = createWorkloadTask.SwixProjects.Where(s => s.GetMetadata(Metadata.PackageType).Equals(DefaultValues.PackageTypeComponent)); 153Assert.All(swixComponentProjects, c => Assert.True(c.ItemSpec.Contains(".pre.") && c.GetMetadata(Metadata.IsPreview) == "true" || 154!c.ItemSpec.Contains(".pre.") && c.GetMetadata(Metadata.IsPreview) == "false"));
MsiTests.cs (9)
36string msiPath603 = msi603.GetMetadata(Metadata.FullPath); 50string msiPath603 = msi603.GetMetadata(Metadata.FullPath); 54string msiPath604 = msi604.GetMetadata(Metadata.FullPath); 76Assert.NotNull(msi603.GetMetadata(Metadata.WixObj)); 77Assert.NotNull(msi604.GetMetadata(Metadata.WixObj)); 91string msiPath = item.GetMetadata(Metadata.FullPath); 107Assert.NotNull(item.GetMetadata(Metadata.WixObj)); 123string msiPath = item.GetMetadata(Metadata.FullPath); 142Assert.NotNull(item.GetMetadata(Metadata.WixObj));
SwixPackageGroupTests.cs (2)
42Assert.Equal(expectedFeatureBand, packageGroupItem.GetMetadata(Metadata.SdkFeatureBand)); 43Assert.Equal(DefaultValues.PackageTypeManifestPackageGroup, packageGroupItem.GetMetadata(Metadata.PackageType));
SwixPackageTests.cs (2)
55Assert.Equal($"Microsoft.iOS.Templates.{packageVersion}", msiItem.GetMetadata(Metadata.SwixPackageId)); 59chip: msiItem.GetMetadata(Metadata.Platform),
Microsoft.DotNet.Deployment.Tasks.Links (2)
Microsoft.DotNet.GenAPI (1)
GenAPITask.cs (1)
414Symbol = c.GetMetadata("Symbol"),
Microsoft.DotNet.GenFacades (2)
GenPartialFacadeSourceGenerator.cs (1)
73string value = item.GetMetadata("Aliases");
NotSupportedAssemblyGenerator.cs (1)
55string outputPath = item.GetMetadata("OutputPath");
Microsoft.DotNet.Helix.Sdk (30)
CancelHelixJob.cs (1)
32string correlationId = job.GetMetadata("Identity");
CheckAzurePipelinesTestResults.cs (4)
145t.GetMetadata("JobName") == jobId && t.GetMetadata("WorkItemName") == workItemName); 150Log.LogError(FailureCategory.Test, $"Test {name} has failed. Check the Test tab or this console log: {workItem.GetMetadata("ConsoleOutputUri")}"); 223HashSet<string> expectedFailures = ExpectedTestFailures?.Select(i => i.GetMetadata("Identity")).ToHashSet() ?? new HashSet<string>();
CheckHelixJobStatus.cs (4)
37var failed = workItem.GetMetadata("Failed"); 40var jobName = workItem.GetMetadata("JobName"); 41var workItemName = workItem.GetMetadata("WorkItemName"); 42var consoleUri = workItem.GetMetadata("ConsoleOutputUri");
CreateFailedTestsForFailedWorkItems.cs (4)
24var jobName = workItem.GetMetadata("JobName"); 25var workItemName = workItem.GetMetadata("WorkItemName"); 26var testRunId = workItem.GetMetadata("TestRunId"); 27var failed = workItem.GetMetadata("Failed") == "true";
DownloadFromResultsContainer.cs (2)
60await writer.WriteLineAsync(metadata.GetMetadata("Identity")); 72string workItemName = workItem.GetMetadata("Identity");
GetHelixWorkItems.cs (1)
39var jobName = job.GetMetadata("Identity");
SendHelixJob.cs (9)
368string payloadDirectory = workItem.GetMetadata(MetadataNames.PayloadDirectory); 369string payloadArchive = workItem.GetMetadata(MetadataNames.PayloadArchive); 370string payloadUri = workItem.GetMetadata(MetadataNames.PayloadUri); 394string timeoutString = workItem.GetMetadata(MetadataNames.Timeout); 508string path = correlationPayload.GetMetadata(MetadataNames.FullPath); 509string uri = correlationPayload.GetMetadata(MetadataNames.Uri); 510string destination = correlationPayload.GetMetadata(MetadataNames.Destination) ?? ""; 528string includeDirectoryNameStr = correlationPayload.GetMetadata(MetadataNames.IncludeDirectoryName); 544string asArchiveStr = correlationPayload.GetMetadata(MetadataNames.AsArchive);
TaskItemExtensions.cs (2)
13value = item.GetMetadata(key); 19value = item.GetMetadata(key);
WaitForHelixJobCompletion.cs (3)
30List<(string jobName, string queueName, string jobCancellationToken)> jobNames = Jobs.Select(j => (j.GetMetadata("Identity"), j.GetMetadata("HelixTargetQueue"), j.GetMetadata("HelixJobCancellationToken"))).ToList();
Microsoft.DotNet.Helix.Sdk.Tests (48)
CreateXHarnessAndroidWorkItemsTests.cs (20)
78workItem.GetMetadata("Identity").Should().Be("System.Foo"); 79workItem.GetMetadata("Timeout").Should().Be("00:17:42"); 81var payloadArchive = workItem.GetMetadata("PayloadArchive"); 85var command = workItem.GetMetadata("Command"); 117workItem.GetMetadata("Identity").Should().Be("System.Bar"); 120workItem.GetMetadata("Identity").Should().Be("System.Foo"); 122var payloadArchive = workItem.GetMetadata("PayloadArchive"); 148workItem1.GetMetadata("Identity").Should().Be("item-2"); 150var payloadArchive = workItem1.GetMetadata("PayloadArchive"); 155workItem2.GetMetadata("Identity").Should().Be("item-1"); 157payloadArchive = workItem2.GetMetadata("PayloadArchive"); 180workItem.GetMetadata("Identity").Should().Be("System.Foo"); 181workItem.GetMetadata("Timeout").Should().Be("00:17:42"); 183var payloadArchive = workItem.GetMetadata("PayloadArchive"); 187var command = workItem.GetMetadata("Command"); 226mockBundle.Setup(x => x.GetMetadata(CreateXHarnessAndroidWorkItems.MetadataNames.AndroidPackageName)).Returns(apkName); 230mockBundle.Setup(x => x.GetMetadata(XHarnessTaskBase.MetadataName.WorkItemTimeout)).Returns(workItemTimeout); 235mockBundle.Setup(x => x.GetMetadata(XHarnessTaskBase.MetadataName.TestTimeout)).Returns(testTimeout); 240mockBundle.Setup(x => x.GetMetadata(XHarnessTaskBase.MetadataName.ExpectedExitCode)).Returns(expectedExitCode.ToString()); 245mockBundle.Setup(x => x.GetMetadata(CreateXHarnessAndroidWorkItems.MetadataNames.ApkPath)).Returns(apkPath);
CreateXHarnessAppleWorkItemsTests.cs (28)
81workItem.GetMetadata("Identity").Should().Be("System.Foo"); 82workItem.GetMetadata("Timeout").Should().Be("00:17:42"); 84var payloadArchive = workItem.GetMetadata("PayloadArchive"); 88var command = workItem.GetMetadata("Command"); 127workItem.GetMetadata("Identity").Should().Be("System.Bar"); 130workItem.GetMetadata("Identity").Should().Be("System.Foo"); 132var payloadArchive = workItem.GetMetadata("PayloadArchive"); 137var command = workItem.GetMetadata("Command"); 159workItem.GetMetadata("Identity").Should().Be("System.Foo"); 161var payloadArchive = workItem.GetMetadata("PayloadArchive"); 189workItem1.GetMetadata("Identity").Should().Be("item-1"); 191var payloadArchive = workItem1.GetMetadata("PayloadArchive"); 195var command = workItem1.GetMetadata("Command"); 200workItem2.GetMetadata("Identity").Should().Be("item-2"); 202payloadArchive = workItem2.GetMetadata("PayloadArchive"); 206command = workItem2.GetMetadata("Command"); 232workItem.GetMetadata("Identity").Should().Be("System.Foo"); 233workItem.GetMetadata("Timeout").Should().Be("00:17:42"); 235var payloadArchive = workItem.GetMetadata("PayloadArchive"); 239var command = workItem.GetMetadata("Command"); 288mockBundle.Setup(x => x.GetMetadata(CreateXHarnessAppleWorkItems.MetadataNames.Target)).Returns(target); 289mockBundle.Setup(x => x.GetMetadata(CreateXHarnessAppleWorkItems.MetadataNames.IncludesTestRunner)).Returns(includesTestRunner.ToString()); 293mockBundle.Setup(x => x.GetMetadata(XHarnessTaskBase.MetadataName.WorkItemTimeout)).Returns(workItemTimeout); 298mockBundle.Setup(x => x.GetMetadata(XHarnessTaskBase.MetadataName.TestTimeout)).Returns(testTimeout); 303mockBundle.Setup(x => x.GetMetadata(CreateXHarnessAppleWorkItems.MetadataNames.LaunchTimeout)).Returns(launchTimeout); 308mockBundle.Setup(x => x.GetMetadata(XHarnessTaskBase.MetadataName.ExpectedExitCode)).Returns(expectedExitCode.ToString()); 313mockBundle.Setup(x => x.GetMetadata(XHarnessTaskBase.MetadataName.CustomCommands)).Returns(customCommands); 318mockBundle.Setup(x => x.GetMetadata(CreateXHarnessAppleWorkItems.MetadataNames.AppBundlePath)).Returns(appBundlePath);
Microsoft.DotNet.PackageTesting (3)
VerifyClosure.cs (2)
78var path = source.GetMetadata("FullPath"); 134var versionString = ignoredReference.GetMetadata("Version");
VerifyTypes.cs (1)
80var path = source.GetMetadata("FullPath");
Microsoft.DotNet.SharedFramework.Sdk (22)
src\CreateFrameworkListFile.cs (8)
64?.Select(item => new XAttribute(item.ItemSpec, item.GetMetadata("Value"))) 85TargetPath = item.GetMetadata("TargetPath"), 88IsNative = item.GetMetadata("IsNative") == "true", 89IsSymbolFile = item.GetMetadata("IsSymbolFile") == "true", 90IsPgoData = item.GetMetadata("IsPgoData") == "true", 217string profile = classItem.GetMetadata("Profile"); 224string referencedByDefault = classItem.GetMetadata("ReferencedByDefault"); 269?.Any(prefix => item.GetMetadata("TargetPath")?.StartsWith(prefix) == true) ?? true;
src\GeneratePlatformManifestEntriesFromFileList.cs (2)
31AssemblyVersion = FileUtilities.GetAssemblyName(file.GetMetadata("OriginalFilePath"))?.Version.ToString() ?? string.Empty, 32FileVersion = FileUtilities.GetFileVersion(file.GetMetadata("OriginalFilePath"))?.ToString() ?? string.Empty
src\GeneratePlatformManifestEntriesFromTemplate.cs (3)
49var isNativeEntry = entryTemplate.GetMetadata("IsNative") == "true"; 61string localAssemblyVersionFallback = entryTemplate.GetMetadata("FallbackAssemblyVersion"); 70string localFileVersionFallback = entryTemplate.GetMetadata("FallbackFileVersion");
src\GenerateSharedFrameworkDepsFile.cs (2)
57if (!string.IsNullOrEmpty(file.GetMetadata("GeneratedBuildFile"))) 65string cultureMaybe = file.GetMetadata("Culture");
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (2)
78var path = source.GetMetadata("FullPath"); 134var versionString = ignoredReference.GetMetadata("Version");
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
80var path = source.GetMetadata("FullPath");
src\ValidateFileVersions.cs (4)
25if (file.GetMetadata("IsSymbolFile").Equals("true", StringComparison.OrdinalIgnoreCase)) 94var filePath = file.GetMetadata("FullPath"); 110Version.TryParse(file.GetMetadata("AssemblyVersion"), out assemblyVersion); 111Version.TryParse(file.GetMetadata("FileVersion"), out fileVersion);
Microsoft.DotNet.SignTool (14)
src\Configuration.cs (3)
147string collisionPriorityId = itemToSign.GetMetadata(SignToolConstants.CollisionPriorityId); 471(d.GetMetadata(SignToolConstants.CollisionPriorityId) == "" || 472d.GetMetadata(SignToolConstants.CollisionPriorityId) == _hashToCollisionIdMap[signedFileContentKey])).Any();
src\SignToolTask.cs (11)
255ItemsToSign.OrderBy(i => i.GetMetadata(SignToolConstants.CollisionPriorityId)).ToArray(), 310.Where(item => item.GetMetadata("DualSigningAllowed").Equals("true", StringComparison.OrdinalIgnoreCase)) 375var certificate = item.GetMetadata("CertificateName"); 376var collisionPriorityId = item.GetMetadata(SignToolConstants.CollisionPriorityId); 423var publicKeyToken = item.GetMetadata("PublicKeyToken"); 424var certificateName = item.GetMetadata("CertificateName"); 425var collisionPriorityId = item.GetMetadata(SignToolConstants.CollisionPriorityId); 479var targetFramework = item.GetMetadata("TargetFramework"); 480var publicKeyToken = item.GetMetadata("PublicKeyToken"); 481var certificateName = item.GetMetadata("CertificateName"); 482var collisionPriorityId = item.GetMetadata(SignToolConstants.CollisionPriorityId);
Microsoft.DotNet.SourceBuild.Tasks (8)
src\UsageReport\WritePackageUsageData.cs (2)
133item.GetMetadata("PackageId"), 134NuGetVersion.Parse(item.GetMetadata("PackageVersion"))))
src\UsageReport\WriteUsageReports.cs (2)
75item.GetMetadata("PackageId"), 76item.GetMetadata("OriginBuildName"));
src\WriteBuildOutputProps.cs (4)
57using (var reader = new PackageArchiveReader(item.GetMetadata("FullPath"))) 93string propertyName = extraProp.GetMetadata("Identity"); 96if (bool.TryParse(extraProp.GetMetadata("DoNotOverwrite"), out doNotOverwrite) && doNotOverwrite) 100sw.WriteLine($" <{propertyName}{overwriteCondition}>{extraProp.GetMetadata("Version")}</{propertyName}>");
Microsoft.DotNet.VersionTools.Tasks (26)
BaseDependenciesTask.cs (25)
97string type = step.GetMetadata("UpdaterType"); 194string type = info.GetMetadata("DependencyType"); 243string buildInfoName = step.GetMetadata("BuildInfoName"); 244string packageId = step.GetMetadata("PackageId"); 268string packageId = step.GetMetadata("PackageId"); 282step.GetMetadata(nameof(updater.SkipIfNoReplacementFound)), 287string oldValue = step.GetMetadata(ReplacementSubstituteOldMetadataName); 288string newValue = step.GetMetadata(ReplacementSubstituteNewMetadataName); 307updater.Path = step.GetMetadata("Path"); 309string elementName = step.GetMetadata("ElementName"); 310string manualRegex = step.GetMetadata("Regex"); 311string msbuildSdkName = step.GetMetadata("MSBuildSdkName"); 334step.GetMetadata(nameof(updater.SkipIfNoReplacementFound)), 345string path = step.GetMetadata("SingleLineFile"); 368.GetMetadata("UpdateStableVersions") 372.GetMetadata("DisabledPackages") 383string rawUrl = item.GetMetadata(RawUrlMetadataName); 390string rawVersionsBaseUrl = item.GetMetadata(RawVersionsBaseUrlMetadataName); 391string buildInfoPath = item.GetMetadata(BuildInfoPathMetadataName); 392string currentRef = item.GetMetadata(CurrentRefMetadataName); 395string versionsRepoDir = item.GetMetadata(VersionsRepoDirMetadataName); 420string packageId = item.GetMetadata(PackageIdMetadataName); 421string version = item.GetMetadata(VersionMetadataName); 441string metadata = item.GetMetadata(name); 460if (!string.IsNullOrEmpty(item.GetMetadata(name)))
UpdateToRemoteDependencies.cs (1)
85.Where(item => !string.IsNullOrEmpty(item?.GetMetadata(CurrentRefMetadataName))))
Microsoft.DotNet.XliffTasks (12)
Tasks\GatherTranslatedSource.cs (5)
28bool preserveFileName = string.Equals(xlf.GetMetadata(MetadataKey.XlfPreserveFileName), "true", StringComparison.OrdinalIgnoreCase); 60string link = xlf.GetMetadata(MetadataKey.Link); 87string manifestResourceName = xlf.GetMetadata(MetadataKey.ManifestResourceName); 97string logicalName = xlf.GetMetadata(MetadataKey.LogicalName); 108string dependentUpon = xlf.GetMetadata(MetadataKey.DependentUpon);
Tasks\GatherXlf.cs (2)
53bool preserveFileName = string.Equals(source.GetMetadata(MetadataKey.XlfPreserveFileName), "true", StringComparison.OrdinalIgnoreCase); 55string translatedFileName = source.GetMetadata(MetadataKey.XlfTranslatedFilename);
Tasks\TaskItemExtensions.cs (2)
12string value = item.GetMetadata(key); 24string value = item.GetMetadata(key);
Tasks\TransformTemplates.cs (2)
35Dictionary<string, ITaskItem> resourceMap = UnstructuredResources.ToDictionary(item => item.GetMetadata("FullPath")); 64string templatePath = template.GetMetadata("FullPath");
Tasks\TranslateSource.cs (1)
23TranslatableDocument sourceDocument = XlfTask.LoadSourceDocument(sourcePath, XlfFile.GetMetadata(MetadataKey.XlfSourceFormat));
Microsoft.Extensions.ApiDescription.Client (6)
GetOpenApiReferenceMetadata.cs (6)
58var codeGenerator = item.GetMetadata("CodeGenerator"); 62var type = string.IsNullOrEmpty(item.GetMetadata("SourceProject")) ? 82var outputPath = item.GetMetadata("OutputPath"); 86var filename = item.GetMetadata("Filename"); 110var className = item.GetMetadata("ClassName"); 119var @namespace = item.GetMetadata("Namespace");
Microsoft.Extensions.ApiDescription.Client.Tests (2)
MetadataSerializerTest.cs (2)
153Assert.Equal(value, item.GetMetadata("Value")); 168Assert.Equal("a value", item.GetMetadata("Value"));
Microsoft.NETCore.Platforms (1)
UpdateRuntimeIdentifierGraph.cs (1)
43string[] importedRids = rid.GetMetadata("Imports").Split(';');
MSBuild (6)
JsonOutputFormatter.cs (2)
142jsonItem["Identity"] = item.GetMetadata("Identity"); 150jsonItem[metadatumName] = item.GetMetadata(metadatumName);
TaskParameter.cs (4)
319escapedDefiningProject = EscapingUtilities.EscapeWithCaching(copyFrom.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectFullPath)); 422escapedDefiningProject = EscapingUtilities.EscapeWithCaching(wrappedItem.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectFullPath)); 892string originalItemSpec = destinationItem.GetMetadata("OriginalItemSpec"); 898string value = destinationItem.GetMetadata(entry.Key);
MSBuildTaskHost (4)
TaskParameter.cs (4)
319escapedDefiningProject = EscapingUtilities.EscapeWithCaching(copyFrom.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectFullPath)); 422escapedDefiningProject = EscapingUtilities.EscapeWithCaching(wrappedItem.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectFullPath)); 892string originalItemSpec = destinationItem.GetMetadata("OriginalItemSpec"); 898string value = destinationItem.GetMetadata(entry.Key);
PresentationBuildTasks (18)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (3)
311outputItem.SetMetadata(SharedStrings.Link, inputItem.GetMetadata(SharedStrings.Link)); 312outputItem.SetMetadata(SharedStrings.LogicalName, inputItem.GetMetadata(SharedStrings.LogicalName)); 346localizableString = fileItem.GetMetadata(SharedStrings.Localizable);
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
747string embedInteropTypesMetadata = pItem.GetMetadata(EMBEDINTEROPTYPES); 755string aliases = pItem.GetMetadata(ALIASES);
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (4)
1555linkAlias = inputXamlItem.GetMetadata(SharedStrings.Link); 1556logicalName = inputXamlItem.GetMetadata(SharedStrings.LogicalName); 1612attributeValue = SourceItem.GetMetadata(listCarryOverAttribute[j]); 1729strLocalizable = ti.GetMetadata(SharedStrings.Localizable);
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (2)
332resFile.GetMetadata(SharedStrings.Link), 333resFile.GetMetadata(SharedStrings.LogicalName),
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (7)
214string linkAlias = taskItem.GetMetadata(SharedStrings.Link); 215string logicalName = taskItem.GetMetadata(SharedStrings.LogicalName); 396HashSet<string> localMarkupPages = new HashSet<string>(_mcPass1.PageMarkup.Select(x => x.GetMetadata(SharedStrings.FullPath)), StringComparer.OrdinalIgnoreCase); 469taskItem.GetMetadata(SharedStrings.Link), 470taskItem.GetMetadata(SharedStrings.LogicalName)); 538taskItem.GetMetadata(SharedStrings.Link), 539taskItem.GetMetadata(SharedStrings.LogicalName));