Change generated file extension to .g.cs

This commit is contained in:
Adam Hathcock
2023-01-17 08:32:47 +00:00
parent 4a410763de
commit 6d9f4ab354
+1 -1
View File
@@ -111,7 +111,7 @@ namespace InterfaceGenerator
var attribute = attributes.Single();
var source = SourceText.From(GenerateInterfaceCode(implTypeSymbol, attribute), Encoding.UTF8);
context.AddSource($"{implTypeSymbol.GetFullMetadataName(useNameWhenNotFound: true)}_AutoInterface.cs", source);
context.AddSource($"{implTypeSymbol.GetFullMetadataName(useNameWhenNotFound: true)}_AutoInterface.g.cs", source);
}
}