From 4a600e3a1d868af44995236a7ac19b84f8718c42 Mon Sep 17 00:00:00 2001 From: David Vreony Date: Tue, 22 Aug 2023 12:11:19 +0100 Subject: [PATCH] fix event id's now failing VS validation (#385) --- .../Generators/BaseGenerator.cs | 4 ++-- .../Dhgms.Nucleotide.SampleGenerator.csproj | 1 + .../Dhgms.Nucleotide.UnitTests.csproj | 11 +---------- .../Generators/BaseGeneratorTests.cs | 4 ++-- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/Dhgms.Nucleotide.Generators/Generators/BaseGenerator.cs b/src/Dhgms.Nucleotide.Generators/Generators/BaseGenerator.cs index 64bef723..b91ad8cb 100644 --- a/src/Dhgms.Nucleotide.Generators/Generators/BaseGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Generators/BaseGenerator.cs @@ -29,7 +29,7 @@ public void Initialize(GeneratorInitializationContext context) public static Diagnostic InfoDiagnostic(string message) { return Diagnostic.Create( - "NUC-I0001", + "NUCI0001", "Nucleotide Generation", message, DiagnosticSeverity.Info, @@ -42,7 +42,7 @@ public static Diagnostic InfoDiagnostic(string message) public static Diagnostic ErrorDiagnostic(string message) { return Diagnostic.Create( - "NUC-E0001", + "NUCE0001", "Nucleotide Generation", message, DiagnosticSeverity.Error, diff --git a/src/Dhgms.Nucleotide.ModelTests/Dhgms.Nucleotide.SampleGenerator.csproj b/src/Dhgms.Nucleotide.ModelTests/Dhgms.Nucleotide.SampleGenerator.csproj index c384d1a2..cd12fc8e 100644 --- a/src/Dhgms.Nucleotide.ModelTests/Dhgms.Nucleotide.SampleGenerator.csproj +++ b/src/Dhgms.Nucleotide.ModelTests/Dhgms.Nucleotide.SampleGenerator.csproj @@ -3,6 +3,7 @@ netstandard2.0 false + true diff --git a/src/Dhgms.Nucleotide.UnitTests/Dhgms.Nucleotide.UnitTests.csproj b/src/Dhgms.Nucleotide.UnitTests/Dhgms.Nucleotide.UnitTests.csproj index 0881611e..674305a8 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Dhgms.Nucleotide.UnitTests.csproj +++ b/src/Dhgms.Nucleotide.UnitTests/Dhgms.Nucleotide.UnitTests.csproj @@ -12,21 +12,12 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - - - - - all - runtime; build; native; contentfiles; analyzers - diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/BaseGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/BaseGeneratorTests.cs index 4cc1d961..376e2f92 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/BaseGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/BaseGeneratorTests.cs @@ -41,7 +41,7 @@ public MockAttributeData(TypedConstant constructorArg) protected override ImmutableArray> CommonNamedArguments { get; } } - public abstract class BaseConstructorMethod : Foundatio.Logging.Xunit.TestWithLoggingBase + public abstract class BaseConstructorMethod : Foundatio.Xunit.TestWithLoggingBase where TGenerator : BaseGenerator where TFeatureFlags : class where TGeneratorProcessor : BaseGeneratorProcessor, new() @@ -64,7 +64,7 @@ protected BaseConstructorMethod(ITestOutputHelper output) : base(output) } } - public abstract class BaseGenerateAsyncMethod : Foundatio.Logging.Xunit.TestWithLoggingBase + public abstract class BaseGenerateAsyncMethod : Foundatio.Xunit.TestWithLoggingBase where TGenerator : BaseGenerator where TFeatureFlags : class where TGeneratorProcessor : BaseGeneratorProcessor, new()