diff --git a/src/Uno.CodeGen.ClassLifecycle/Uno.CodeGen.ClassLifecycle.csproj b/src/Uno.CodeGen.ClassLifecycle/Uno.CodeGen.ClassLifecycle.csproj index 1be13d2..258dc58 100644 --- a/src/Uno.CodeGen.ClassLifecycle/Uno.CodeGen.ClassLifecycle.csproj +++ b/src/Uno.CodeGen.ClassLifecycle/Uno.CodeGen.ClassLifecycle.csproj @@ -24,12 +24,12 @@ This package is part of the Uno.CodeGen to generate classes lifecycle methods in - - + + - + NU1701 diff --git a/src/Uno.CodeGen.Tests.ExternalClasses/Uno.CodeGen.Tests.ExternalClasses.csproj b/src/Uno.CodeGen.Tests.ExternalClasses/Uno.CodeGen.Tests.ExternalClasses.csproj index bc45c12..0e4c9af 100644 --- a/src/Uno.CodeGen.Tests.ExternalClasses/Uno.CodeGen.Tests.ExternalClasses.csproj +++ b/src/Uno.CodeGen.Tests.ExternalClasses/Uno.CodeGen.Tests.ExternalClasses.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/Uno.CodeGen.Tests/Uno.CodeGen.Tests.csproj b/src/Uno.CodeGen.Tests/Uno.CodeGen.Tests.csproj index 7d1179b..6016813 100644 --- a/src/Uno.CodeGen.Tests/Uno.CodeGen.Tests.csproj +++ b/src/Uno.CodeGen.Tests/Uno.CodeGen.Tests.csproj @@ -20,8 +20,8 @@ - - + + NU1701 diff --git a/src/Uno.CodeGen/EqualityGenerator.cs b/src/Uno.CodeGen/EqualityGenerator.cs index 8a82a72..882d4a6 100644 --- a/src/Uno.CodeGen/EqualityGenerator.cs +++ b/src/Uno.CodeGen/EqualityGenerator.cs @@ -288,7 +288,9 @@ namespace Uno } using (builder.BlockInvariant("public override int GetHashCode()")) { + builder.AppendLineInvariant("#pragma warning disable CS0171"); builder.AppendLineInvariant("return _computedHashCode ?? (int)(_computedHashCode = ComputeHashCode());"); + builder.AppendLineInvariant("#pragma warning restore CS0171"); } builder.AppendLine(); diff --git a/src/Uno.CodeGen/Uno.CodeGen.csproj b/src/Uno.CodeGen/Uno.CodeGen.csproj index 88102a8..8c2acfa 100644 --- a/src/Uno.CodeGen/Uno.CodeGen.csproj +++ b/src/Uno.CodeGen/Uno.CodeGen.csproj @@ -20,13 +20,13 @@ - - + + - + NU1701