13 references to GeneratorUtilities
Microsoft.Gen.MetadataExtractor (13)
MetadataReportsGenerator.cs (3)
63!GeneratorUtilities.ShouldGenerateReport(context, GenerateMetadataMSBuildProperty)) 75var path = GeneratorUtilities.TryRetrieveOptionsValue(options, ReportOutputPathMSBuildProperty, out var reportOutputPath) 77: GeneratorUtilities.GetDefaultReportOutputPath(options);
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (3)
59if (!GeneratorUtilities.ShouldGenerateReport(context, GenerateComplianceReportsMSBuildProperty)) 85_directory ??= GeneratorUtilities.TryRetrieveOptionsValue(options, ComplianceReportOutputPathMSBuildProperty, out var reportOutputPath) 87: GeneratorUtilities.GetDefaultReportOutputPath(options);
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (3)
42!GeneratorUtilities.ShouldGenerateReport(context, GenerateMetricDefinitionReport)) 49var path = GeneratorUtilities.TryRetrieveOptionsValue(options, ReportOutputPath, out var reportOutputPath) 51: GeneratorUtilities.GetDefaultReportOutputPath(options);
src\Generators\Shared\EmitterBase.cs (2)
33Out(GeneratorUtilities.FilePreamble); 103protected void OutGeneratedCodeAttribute() => OutLn($"[{GeneratorUtilities.GeneratedCodeAttribute}]");
src\Generators\Shared\GeneratorUtilities.cs (2)
29public static string AssemblyName { get; } = typeof(GeneratorUtilities).Assembly.GetName().Name; 31public static string CurrentVersion { get; } = typeof(GeneratorUtilities).Assembly.GetName().Version.ToString();