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); }