From 06feb514c8523cd15cf0585a4a34bd4e303e2aa7 Mon Sep 17 00:00:00 2001 From: Jan Trejbal Date: Wed, 3 May 2023 14:43:30 +0200 Subject: [PATCH] Add File.Footer.liquid (#4411) --- .../Templates/File.Footer.liquid | 9 +++++++++ src/NSwag.CodeGeneration.CSharp/Templates/File.liquid | 8 +------- 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 src/NSwag.CodeGeneration.CSharp/Templates/File.Footer.liquid diff --git a/src/NSwag.CodeGeneration.CSharp/Templates/File.Footer.liquid b/src/NSwag.CodeGeneration.CSharp/Templates/File.Footer.liquid new file mode 100644 index 0000000000..43ec8e4998 --- /dev/null +++ b/src/NSwag.CodeGeneration.CSharp/Templates/File.Footer.liquid @@ -0,0 +1,9 @@ +#pragma warning restore 108 +#pragma warning restore 114 +#pragma warning restore 472 +#pragma warning restore 612 +#pragma warning restore 1573 +#pragma warning restore 1591 +#pragma warning restore 8073 +#pragma warning restore 3016 +#pragma warning restore 8603 \ No newline at end of file diff --git a/src/NSwag.CodeGeneration.CSharp/Templates/File.liquid b/src/NSwag.CodeGeneration.CSharp/Templates/File.liquid index 31890be63e..13de60c251 100644 --- a/src/NSwag.CodeGeneration.CSharp/Templates/File.liquid +++ b/src/NSwag.CodeGeneration.CSharp/Templates/File.liquid @@ -203,10 +203,4 @@ namespace {{ Namespace }} } -#pragma warning restore 1591 -#pragma warning restore 1573 -#pragma warning restore 472 -#pragma warning restore 114 -#pragma warning restore 108 -#pragma warning restore 3016 -#pragma warning restore 8603 +{% template File.Footer %}