From b6bce6e913267c0b93dcc6214360efc4b4f0b22d Mon Sep 17 00:00:00 2001 From: Tadej Koderman Date: Thu, 17 Oct 2024 14:04:23 +0200 Subject: [PATCH] #22: Save generated IgnoresAccessChecksTo.cs file with UTF8 encoding --- src/IgnoresAccessChecksToGenerator.Tasks/PublicizeInternals.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IgnoresAccessChecksToGenerator.Tasks/PublicizeInternals.cs b/src/IgnoresAccessChecksToGenerator.Tasks/PublicizeInternals.cs index a93c781..89fdcbc 100644 --- a/src/IgnoresAccessChecksToGenerator.Tasks/PublicizeInternals.cs +++ b/src/IgnoresAccessChecksToGenerator.Tasks/PublicizeInternals.cs @@ -87,7 +87,7 @@ public IgnoresAccessChecksToAttribute(string assemblyName) } } }"; - File.WriteAllText(GeneratedCodeFilePath, content); + File.WriteAllText(GeneratedCodeFilePath, content, System.Text.Encoding.UTF8); Log.LogMessageFromText("Generated IgnoresAccessChecksTo attributes", MessageImportance.Low); }