Skip to content

Commit 7d39905

Browse files
committed
Update LocalizationSourceGenerator.cs
1 parent db224b4 commit 7d39905

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Shiny.Extensions.Localization.Generator/LocalizationSourceGenerator.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ static string GenerateServiceCollectionRegistration(string rootNamespace, IEnume
142142
{
143143
var accessor = useInternalAccessor ? "internal" : "public";
144144
var sb = new StringBuilder()
145+
146+
.AppendLine("// <auto-generated />")
147+
.AppendLine("// This file is auto-generated by Shiny.Extensions.Localization.Generator")
148+
.AppendLine("// Do not edit this file directly, instead edit the .resx files in your project.")
149+
.AppendLine("using global::Microsoft.Extensions.DependencyInjection;")
150+
.AppendLine()
145151
.AppendLine($"namespace {rootNamespace};")
146152
.AppendLine()
147153
.AppendLine($"{accessor} static class ServiceCollectionExtensions_Generated")

0 commit comments

Comments
 (0)