62 references to MetadataKeys
Crossgen2Tasks (62)
PrepareForReadyToRunCompilation.cs (27)
73string isVersion5 = Crossgen2Tool.GetMetadata(MetadataKeys.IsVersion5); 76string perfmapVersion = Crossgen2Tool.GetMetadata(MetadataKeys.PerfmapFormatVersion); 86string diaSymReaderPath = CrossgenTool?.GetMetadata(MetadataKeys.DiaSymReader); 134var outputR2RImageRelativePath = file.GetMetadata(MetadataKeys.RelativePath); 178r2rCompilationEntry.SetMetadata(MetadataKeys.OutputR2RImage, outputR2RImage); 181r2rCompilationEntry.SetMetadata(MetadataKeys.EmitSymbols, "true"); 182r2rCompilationEntry.SetMetadata(MetadataKeys.OutputPDBImage, outputPDBImage); 184r2rCompilationEntry.RemoveMetadata(MetadataKeys.OriginalItemSpec); 196r2rFileToPublish.RemoveMetadata(MetadataKeys.OriginalItemSpec); 211pdbCompilationEntry.SetMetadata(MetadataKeys.OutputPDBImage, outputPDBImage); 212pdbCompilationEntry.SetMetadata(MetadataKeys.CreatePDBCommand, crossgen1CreatePDBCommand); 220r2rSymbolsFileToPublish.SetMetadata(MetadataKeys.RelativePath, outputPDBImageRelativePath); 221r2rSymbolsFileToPublish.RemoveMetadata(MetadataKeys.OriginalItemSpec); 224r2rSymbolsFileToPublish.SetMetadata(MetadataKeys.ExcludeFromSingleFile, "true"); 233MainAssembly.SetMetadata(MetadataKeys.RelativePath, Path.GetFileName(MainAssembly.ItemSpec)); 235var compositeR2RImageRelativePath = MainAssembly.GetMetadata(MetadataKeys.RelativePath); 241r2rCompilationEntry.SetMetadata(MetadataKeys.OutputR2RImage, compositeR2RImage); 242r2rCompilationEntry.SetMetadata(MetadataKeys.CreateCompositeImage, "true"); 243r2rCompilationEntry.RemoveMetadata(MetadataKeys.OriginalItemSpec); 263r2rCompilationEntry.SetMetadata(MetadataKeys.EmitSymbols, "true"); 264r2rCompilationEntry.SetMetadata(MetadataKeys.OutputPDBImage, compositePDBImage); 269r2rSymbolsFileToPublish.SetMetadata(MetadataKeys.RelativePath, compositePDBRelativePath); 270r2rSymbolsFileToPublish.RemoveMetadata(MetadataKeys.OriginalItemSpec); 273r2rSymbolsFileToPublish.SetMetadata(MetadataKeys.ExcludeFromSingleFile, "true"); 285compositeR2RFileToPublish.RemoveMetadata(MetadataKeys.OriginalItemSpec); 286compositeR2RFileToPublish.SetMetadata(MetadataKeys.RelativePath, compositeR2RImageRelativePath); 409if (file.HasMetadataValue(MetadataKeys.ReferenceOnly, "true"))
ResolveReadyToRunCompilers.cs (14)
61_targetRuntimeIdentifier = _runtimePack?.GetMetadata(MetadataKeys.RuntimeIdentifier); 65string supportedRuntimeIdentifiers = targetingPack?.GetMetadata(MetadataKeys.RuntimePackRuntimeIdentifiers); 107_crossgenTool.PackagePath = _runtimePack?.GetMetadata(MetadataKeys.PackageDirectory); 125CrossgenTool.SetMetadata(MetadataKeys.JitPath, _crossgenTool.ClrJitPath); 128CrossgenTool.SetMetadata(MetadataKeys.DiaSymReader, _crossgenTool.DiaSymReaderPath); 136_crossgen2Tool.PackagePath = _crossgen2Pack?.GetMetadata(MetadataKeys.PackageDirectory); 138!NuGetVersion.TryParse(_crossgen2Pack.GetMetadata(MetadataKeys.NuGetPackageVersion), out NuGetVersion crossgen2PackVersion)) 169Crossgen2Tool.SetMetadata(MetadataKeys.IsVersion5, version5.ToString()); 172Crossgen2Tool.SetMetadata(MetadataKeys.JitPath, _crossgen2Tool.ClrJitPath); 176Crossgen2Tool.SetMetadata(MetadataKeys.TargetOS, targetOS); 177Crossgen2Tool.SetMetadata(MetadataKeys.TargetArch, ArchitectureToString(_targetArchitecture)); 180Crossgen2Tool.SetMetadata(MetadataKeys.PerfmapFormatVersion, PerfmapFormatVersion); 190return GetNETCoreAppPack(RuntimePacks, MetadataKeys.FrameworkName); 195return GetNETCoreAppPack(TargetingPacks, MetadataKeys.RuntimeFrameworkName);
RunReadyToRunCompiler.cs (21)
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); 127Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.JitPath); 133if (string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS))) 135Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.TargetOS); 138if (string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetArch))) 140Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.TargetArch); 157if (!File.Exists(CrossgenTool.GetMetadata(MetadataKeys.JitPath))) 159Log.LogError(Strings.JitLibraryNotFound, 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);