Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for .NET 6.0.2 regression. #446

Merged
merged 1 commit into from
Feb 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/CodeGenerators/SettingsGen/BaseGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected virtual bool ShouldGenerateFile(GeneratorExecutionContext context, out
/// <summary>
/// Writing to a file
/// </summary>
protected static readonly DiagnosticDescriptor WritingToFile = new(id: "SETTINGSGEN001",
protected static readonly DiagnosticDescriptor WritingToFile = new DiagnosticDescriptor(id: "SETTINGSGEN001",
title: "Writing to settings file",
messageFormat: "Writing to file '{0}'",
category: "SettingsGenerator",
Expand All @@ -107,7 +107,7 @@ protected virtual bool ShouldGenerateFile(GeneratorExecutionContext context, out
/// <summary>
/// Don't generate
/// </summary>
protected static readonly DiagnosticDescriptor DontGen = new(id: "SETTINGSGEN002",
protected static readonly DiagnosticDescriptor DontGen = new DiagnosticDescriptor(id: "SETTINGSGEN002",
title: "Not generating",
messageFormat: "Not generating/updating settings file",
category: "SettingsGenerator",
Expand All @@ -117,7 +117,7 @@ protected virtual bool ShouldGenerateFile(GeneratorExecutionContext context, out
/// <summary>
/// Matching settings
/// </summary>
protected static readonly DiagnosticDescriptor MatchingSettings = new(id: "SETTINGSGEN003",
protected static readonly DiagnosticDescriptor MatchingSettings = new DiagnosticDescriptor(id: "SETTINGSGEN003",
title: "Existing settings match",
messageFormat: "No new settings or updated settings so don't need to generate",
category: "SettingsGenerator",
Expand All @@ -127,7 +127,7 @@ protected virtual bool ShouldGenerateFile(GeneratorExecutionContext context, out
/// <summary>
/// Failed to generate
/// </summary>
protected static readonly DiagnosticDescriptor FailedGeneration = new(id: "SETTINGSGEN004",
protected static readonly DiagnosticDescriptor FailedGeneration = new DiagnosticDescriptor(id: "SETTINGSGEN004",
title: "Failed with exception",
messageFormat: "Failed to write settings generator with error {0}",
category: "SettingsGenerator",
Expand All @@ -137,7 +137,7 @@ protected virtual bool ShouldGenerateFile(GeneratorExecutionContext context, out
/// <summary>
/// Encoutered error in settings gen
/// </summary>
protected static readonly DiagnosticDescriptor EncounteredError = new(id: "SETTINGSGEN005",
protected static readonly DiagnosticDescriptor EncounteredError = new DiagnosticDescriptor(id: "SETTINGSGEN005",
title: "Error encountered",
messageFormat: "Encountered error {0} when running settings gen",
category: "SettingsGenerator",
Expand Down