From 671761b9f85ddea64e3df01a7e7703cfaec287bc Mon Sep 17 00:00:00 2001 From: Reuben Bond Date: Thu, 27 Aug 2026 14:04:57 -0700 Subject: [PATCH] fix(codegen): suppress generated source warnings --- .../GeneratedSourceOutput.cs | 5 +- .../GeneratedWarningSuppressionTests.cs | 82 +++++++++++++++++-- .../OrleansSourceGeneratorTests.cs | 2 +- ...SourceGeneratorTests.TestAlias.verified.cs | 4 +- ...eGeneratorTests.TestBasicClass.verified.cs | 4 +- ...tBasicClassWithAnnotatedFields.verified.cs | 4 +- ...ssWithDifferentAccessModifiers.verified.cs | 4 +- ...Tests.TestBasicClassWithFields.verified.cs | 4 +- ....TestBasicClassWithInheritance.verified.cs | 4 +- ...BasicClassWithInitOnlyProperty.verified.cs | 4 +- ...TestBasicClassWithoutNamespace.verified.cs | 4 +- ...eGeneratorTests.TestBasicGrain.verified.cs | 4 +- ...GeneratorTests.TestBasicStruct.verified.cs | 4 +- ...atorTests.TestClassNestedTypes.verified.cs | 4 +- ...rTests.TestClassPrimitiveTypes.verified.cs | 4 +- ...assPrimitiveTypesUsingFullName.verified.cs | 4 +- ...s.TestClassReferenceProperties.verified.cs | 4 +- ...ClassWithConstructorParameters.verified.cs | 4 +- ...TestClassWithFieldAndNoSetters.verified.cs | 4 +- ...ateMethodSerializersAnnotation.verified.cs | 4 +- ...thGenerateSerializerAnnotation.verified.cs | 4 +- ...hInterfaceConstructorParameter.verified.cs | 4 +- ...tClassWithNoPublicConstructors.verified.cs | 4 +- ...hOptionalConstructorParameters.verified.cs | 4 +- ...ssWithParameterizedConstructor.verified.cs | 4 +- ...ActivatorConstructorAnnotation.verified.cs | 4 +- ...torTests.TestCompoundTypeAlias.verified.cs | 4 +- ...eneratorTests.TestGenericClass.verified.cs | 4 +- ...ClassWithConstructorParameters.verified.cs | 4 +- ...torTests.TestGrainComplexGrain.verified.cs | 4 +- ...AnnotatedWithInvokableBaseType.verified.cs | 4 +- ...odAnnotatedWithResponseTimeout.verified.cs | 4 +- ...TestGrainWithDifferentKeyTypes.verified.cs | 4 +- ...estGrainWithMultipleInterfaces.verified.cs | 4 +- ...urceGeneratorTests.TestRecords.verified.cs | 4 +- ...cordsWithParameterIdAttributes.verified.cs | 4 +- ...tDefaultMemberValuesAnnotation.verified.cs | 4 +- ...erializerTransparentAnnotation.verified.cs | 4 +- ...ressReferenceTrackingAttribute.verified.cs | 4 +- ...TestWithUseActivatorAnnotation.verified.cs | 4 +- 40 files changed, 150 insertions(+), 87 deletions(-) diff --git a/src/Orleans.CodeGenerator/GeneratedSourceOutput.cs b/src/Orleans.CodeGenerator/GeneratedSourceOutput.cs index 4fa4c1d269f..742dfa01080 100644 --- a/src/Orleans.CodeGenerator/GeneratedSourceOutput.cs +++ b/src/Orleans.CodeGenerator/GeneratedSourceOutput.cs @@ -11,8 +11,8 @@ namespace Orleans.CodeGenerator; internal static class GeneratedSourceOutput { - private const string GeneratedCodeWarningDisable = "#pragma warning disable CS1591, RS0016, RS0041"; - private const string GeneratedCodeWarningRestore = "#pragma warning restore CS1591, RS0016, RS0041"; + private const string GeneratedCodeWarningDisable = "#pragma warning disable"; + private const string GeneratedCodeWarningRestore = "#pragma warning restore"; internal static void EmitSourceOutputResult(SourceProductionContext context, SourceOutputResult result) { @@ -380,4 +380,3 @@ internal static string SanitizeHintComponent(string value) } } - diff --git a/test/Orleans.CodeGenerator.Tests/GeneratedWarningSuppressionTests.cs b/test/Orleans.CodeGenerator.Tests/GeneratedWarningSuppressionTests.cs index a224ffb4add..c8a8d3907f5 100644 --- a/test/Orleans.CodeGenerator.Tests/GeneratedWarningSuppressionTests.cs +++ b/test/Orleans.CodeGenerator.Tests/GeneratedWarningSuppressionTests.cs @@ -6,6 +6,8 @@ namespace Orleans.CodeGenerator.Tests; public sealed class GeneratedWarningSuppressionTests { + private const string ObsoleteWithoutMessageDiagnosticId = "CS0612"; + private const string ObsoleteWithMessageDiagnosticId = "CS0618"; private const string MissingXmlCommentDiagnosticId = "CS1591"; private const string PublicApiAnalyzerDiagnosticId = "RS0016"; private const string CompilerApiAnalyzerDiagnosticId = "RS0041"; @@ -46,7 +48,7 @@ public interface IWarningGrain : IGrainWithIntegerKey } """; - var compilation = await CreateCompilationWithDocumentationDiagnostics(source); + var compilation = await CreateCompilationWithStrictDiagnostics(source); var result = RunGenerator(compilation); Assert.Empty(result.Diagnostics.Where(static diagnostic => diagnostic.Severity == DiagnosticSeverity.Error)); @@ -72,7 +74,65 @@ public interface IWarningGrain : IGrainWithIntegerKey } [Fact] - public async Task GeneratedSources_CompileCleanlyUnderStrictDiagnosticsForMixedSourceAndReferences() + public async Task GeneratedProxySourcesSuppressObsoleteMemberWarnings() + { + const string source = """ + using Orleans; + using System; + using System.Threading.Tasks; + + namespace TestProject; + + public interface IWarningGrain : IGrainWithIntegerKey + { + [Obsolete] + Task OldMethodWithoutMessage(); + + [Obsolete("Use NewMethod instead.")] + Task OldMethodWithMessage(); + + Task NewMethod(); + } + + public static class WarningCaller + { + public static async Task CallObsoleteMethods(IWarningGrain grain) + { + await grain.OldMethodWithoutMessage(); + await grain.OldMethodWithMessage(); + } + } + """; + + var compilation = await CreateCompilationWithStrictDiagnostics(source); + var result = RunGenerator(compilation); + + Assert.Empty(result.Diagnostics.Where(static diagnostic => diagnostic.Severity == DiagnosticSeverity.Error)); + Assert.Contains(result.GeneratedSources, static source => source.HintName.Contains(".orleans.proxy.", StringComparison.Ordinal)); + + var generatedCompilation = compilation.AddSyntaxTrees(CreateGeneratedSyntaxTrees(result)); + var generatedTreePaths = result.GeneratedSources + .Select(static source => source.HintName) + .ToHashSet(StringComparer.Ordinal); + var obsoleteErrors = generatedCompilation.GetDiagnostics() + .Where(static diagnostic => (diagnostic.Id is ObsoleteWithoutMessageDiagnosticId or ObsoleteWithMessageDiagnosticId) + && diagnostic.Severity == DiagnosticSeverity.Error) + .ToArray(); + + Assert.Equal( + new[] { ObsoleteWithoutMessageDiagnosticId, ObsoleteWithMessageDiagnosticId }, + obsoleteErrors + .Where(diagnostic => diagnostic.Location.SourceTree is { } tree && !generatedTreePaths.Contains(tree.FilePath)) + .Select(static diagnostic => diagnostic.Id) + .OrderBy(static id => id, StringComparer.Ordinal) + .ToArray()); + Assert.DoesNotContain( + obsoleteErrors, + diagnostic => diagnostic.Location.SourceTree is { } tree && generatedTreePaths.Contains(tree.FilePath)); + } + + [Fact] + public async Task GeneratedSourcesCompileCleanlyWhenWarningsAreErrorsForMixedSourceAndReferences() { const string librarySource = """ using Orleans; @@ -132,7 +192,7 @@ public interface ILocalWarningGrain : IGrainWithIntegerKey var libraryCompilation = await TestCompilationHelper.CreateCompilation(librarySource, "LibraryProject"); Assert.Empty(libraryCompilation.GetDiagnostics().Where(static diagnostic => diagnostic.Severity == DiagnosticSeverity.Error)); - var compilation = await CreateCompilationWithDocumentationDiagnostics( + var compilation = await CreateCompilationWithStrictDiagnostics( consumerSource, libraryCompilation.ToMetadataReference()); var result = RunGenerator(compilation); @@ -158,7 +218,7 @@ public interface ILocalWarningGrain : IGrainWithIntegerKey string.Join(Environment.NewLine, generatedErrors)); } - private static async Task CreateCompilationWithDocumentationDiagnostics( + private static async Task CreateCompilationWithStrictDiagnostics( string source, params MetadataReference[] additionalReferences) { @@ -168,11 +228,15 @@ private static async Task CreateCompilationWithDocumentationD DocumentationParseOptions, path: "WarningSuppressionInput.cs", encoding: Encoding.UTF8); - var options = compilation.Options.WithSpecificDiagnosticOptions( - compilation.Options.SpecificDiagnosticOptions - .SetItem(MissingXmlCommentDiagnosticId, ReportDiagnostic.Error) - .SetItem(PublicApiAnalyzerDiagnosticId, ReportDiagnostic.Error) - .SetItem(CompilerApiAnalyzerDiagnosticId, ReportDiagnostic.Error)); + var options = compilation.Options + .WithGeneralDiagnosticOption(ReportDiagnostic.Error) + .WithSpecificDiagnosticOptions( + compilation.Options.SpecificDiagnosticOptions + .SetItem(ObsoleteWithoutMessageDiagnosticId, ReportDiagnostic.Error) + .SetItem(ObsoleteWithMessageDiagnosticId, ReportDiagnostic.Error) + .SetItem(MissingXmlCommentDiagnosticId, ReportDiagnostic.Error) + .SetItem(PublicApiAnalyzerDiagnosticId, ReportDiagnostic.Error) + .SetItem(CompilerApiAnalyzerDiagnosticId, ReportDiagnostic.Error)); return compilation .ReplaceSyntaxTree(compilation.SyntaxTrees.Single(), syntaxTree) diff --git a/test/Orleans.CodeGenerator.Tests/OrleansSourceGeneratorTests.cs b/test/Orleans.CodeGenerator.Tests/OrleansSourceGeneratorTests.cs index 5298804bdf9..2348df323fe 100644 --- a/test/Orleans.CodeGenerator.Tests/OrleansSourceGeneratorTests.cs +++ b/test/Orleans.CodeGenerator.Tests/OrleansSourceGeneratorTests.cs @@ -1869,7 +1869,7 @@ private static string ConcatenateGeneratedSources(GeneratorRunResult result) resultText = resultText.Replace(".Add(typeof(int));", ".Add(typeof( int ));", StringComparison.Ordinal); if (assemblyAttributes.Count > 0) { - resultText += $"{Environment.NewLine}#pragma warning restore CS1591, RS0016, RS0041"; + resultText += $"{Environment.NewLine}#pragma warning restore"; } return resultText; diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestAlias.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestAlias.verified.cs index c132912ac2b..c174808cff1 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestAlias.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestAlias.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -75,4 +75,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClass.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClass.verified.cs index eceac97e8fd..1951bb14180 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClass.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClass.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -118,4 +118,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithAnnotatedFields.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithAnnotatedFields.verified.cs index 28acb2b17d7..60777bc6fd2 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithAnnotatedFields.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithAnnotatedFields.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -142,4 +142,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithDifferentAccessModifiers.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithDifferentAccessModifiers.verified.cs index 9d5cf66f7bd..626062c4b8b 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithDifferentAccessModifiers.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithDifferentAccessModifiers.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -218,4 +218,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithFields.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithFields.verified.cs index 28acb2b17d7..60777bc6fd2 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithFields.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithFields.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -142,4 +142,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithInheritance.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithInheritance.verified.cs index 274e54f3234..00ee0b85c5d 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithInheritance.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithInheritance.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -183,4 +183,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithInitOnlyProperty.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithInitOnlyProperty.verified.cs index 6fe5e23bd20..105e9347c2e 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithInitOnlyProperty.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithInitOnlyProperty.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -120,4 +120,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithoutNamespace.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithoutNamespace.verified.cs index 1512382dca1..91c18def702 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithoutNamespace.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithoutNamespace.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -124,4 +124,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicGrain.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicGrain.verified.cs index ec0671a3b63..62bf1589693 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicGrain.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicGrain.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -264,4 +264,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicStruct.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicStruct.verified.cs index d1b76e9656c..43605c7fd3e 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicStruct.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicStruct.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -74,4 +74,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassNestedTypes.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassNestedTypes.verified.cs index b43bbf18bb2..8e8c9837ee9 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassNestedTypes.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassNestedTypes.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -163,4 +163,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassPrimitiveTypes.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassPrimitiveTypes.verified.cs index 6b2ce7e9de9..6d494c580d0 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassPrimitiveTypes.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassPrimitiveTypes.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -318,4 +318,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassPrimitiveTypesUsingFullName.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassPrimitiveTypesUsingFullName.verified.cs index 6b2ce7e9de9..6d494c580d0 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassPrimitiveTypesUsingFullName.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassPrimitiveTypesUsingFullName.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -318,4 +318,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassReferenceProperties.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassReferenceProperties.verified.cs index e60e2cad1e3..78c20d4ed2a 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassReferenceProperties.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassReferenceProperties.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -158,4 +158,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithConstructorParameters.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithConstructorParameters.verified.cs index 6e1854eb856..71568223b47 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithConstructorParameters.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithConstructorParameters.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -138,4 +138,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithFieldAndNoSetters.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithFieldAndNoSetters.verified.cs index a11725a7014..0befd77dfb3 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithFieldAndNoSetters.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithFieldAndNoSetters.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -146,4 +146,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithGenerateMethodSerializersAnnotation.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithGenerateMethodSerializersAnnotation.verified.cs index c9ddd38be77..a6202319e42 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithGenerateMethodSerializersAnnotation.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithGenerateMethodSerializersAnnotation.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -171,4 +171,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithGenerateSerializerAnnotation.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithGenerateSerializerAnnotation.verified.cs index b9f2b281725..cfe150ec350 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithGenerateSerializerAnnotation.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithGenerateSerializerAnnotation.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -150,4 +150,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithInterfaceConstructorParameter.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithInterfaceConstructorParameter.verified.cs index 8faf866a907..914b1605b36 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithInterfaceConstructorParameter.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithInterfaceConstructorParameter.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -132,4 +132,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithNoPublicConstructors.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithNoPublicConstructors.verified.cs index 3225ea9b796..56ced9db5db 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithNoPublicConstructors.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithNoPublicConstructors.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -123,4 +123,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithOptionalConstructorParameters.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithOptionalConstructorParameters.verified.cs index 6c7d3441e49..5a1691bf7ff 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithOptionalConstructorParameters.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithOptionalConstructorParameters.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -142,4 +142,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithParameterizedConstructor.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithParameterizedConstructor.verified.cs index 55a141b99f0..8792fe13ad4 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithParameterizedConstructor.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassWithParameterizedConstructor.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -236,4 +236,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassesWithGeneratedActivatorConstructorAnnotation.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassesWithGeneratedActivatorConstructorAnnotation.verified.cs index ba0107c2f7d..73511920f8e 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassesWithGeneratedActivatorConstructorAnnotation.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestClassesWithGeneratedActivatorConstructorAnnotation.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -129,4 +129,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestCompoundTypeAlias.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestCompoundTypeAlias.verified.cs index f095595f889..a095e316a00 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestCompoundTypeAlias.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestCompoundTypeAlias.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -250,4 +250,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGenericClass.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGenericClass.verified.cs index 4c1db11d05d..f1fa8ab2319 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGenericClass.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGenericClass.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -271,4 +271,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGenericClassWithConstructorParameters.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGenericClassWithConstructorParameters.verified.cs index 476d688f0ac..d3c7533509a 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGenericClassWithConstructorParameters.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGenericClassWithConstructorParameters.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -260,4 +260,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainComplexGrain.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainComplexGrain.verified.cs index de16baacb7f..9fabc5aa1d3 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainComplexGrain.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainComplexGrain.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -460,4 +460,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainMethodAnnotatedWithInvokableBaseType.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainMethodAnnotatedWithInvokableBaseType.verified.cs index 63f779986bd..730fccf3bb6 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainMethodAnnotatedWithInvokableBaseType.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainMethodAnnotatedWithInvokableBaseType.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -269,4 +269,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainMethodAnnotatedWithResponseTimeout.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainMethodAnnotatedWithResponseTimeout.verified.cs index 5b2ba4578cd..1581f6675af 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainMethodAnnotatedWithResponseTimeout.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainMethodAnnotatedWithResponseTimeout.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -168,4 +168,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainWithDifferentKeyTypes.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainWithDifferentKeyTypes.verified.cs index cdc504d80e1..068c8ad9d94 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainWithDifferentKeyTypes.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainWithDifferentKeyTypes.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -812,4 +812,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainWithMultipleInterfaces.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainWithMultipleInterfaces.verified.cs index 04f152e731d..ab08b63c9f7 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainWithMultipleInterfaces.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestGrainWithMultipleInterfaces.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -311,4 +311,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestRecords.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestRecords.verified.cs index 600d94ac1b8..09aa2973e21 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestRecords.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestRecords.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -312,4 +312,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestRecordsWithParameterIdAttributes.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestRecordsWithParameterIdAttributes.verified.cs index d46666e9389..922c9d57c5e 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestRecordsWithParameterIdAttributes.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestRecordsWithParameterIdAttributes.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -361,4 +361,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 \ No newline at end of file +#pragma warning restore \ No newline at end of file diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithOmitDefaultMemberValuesAnnotation.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithOmitDefaultMemberValuesAnnotation.verified.cs index 3676646d6b9..aaaadb580ce 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithOmitDefaultMemberValuesAnnotation.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithOmitDefaultMemberValuesAnnotation.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -123,4 +123,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithSerializerTransparentAnnotation.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithSerializerTransparentAnnotation.verified.cs index 9945825b424..89696fe9af6 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithSerializerTransparentAnnotation.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithSerializerTransparentAnnotation.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -18,4 +18,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithSuppressReferenceTrackingAttribute.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithSuppressReferenceTrackingAttribute.verified.cs index 2ac059d8ee6..bbebb7c353b 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithSuppressReferenceTrackingAttribute.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithSuppressReferenceTrackingAttribute.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -122,4 +122,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore diff --git a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithUseActivatorAnnotation.verified.cs b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithUseActivatorAnnotation.verified.cs index 87efb83e729..37bf04cebfb 100644 --- a/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithUseActivatorAnnotation.verified.cs +++ b/test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestWithUseActivatorAnnotation.verified.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS1591, RS0016, RS0041 +#pragma warning disable [assembly: global::Orleans.ApplicationPartAttribute("TestProject")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Core.Abstractions")] [assembly: global::Orleans.ApplicationPartAttribute("Orleans.Serialization")] @@ -19,4 +19,4 @@ protected override void ConfigureInner(global::Orleans.Serialization.Configurati } } } -#pragma warning restore CS1591, RS0016, RS0041 +#pragma warning restore