Merge pull request #15 from adamhathcock/change-extension

Change generated file extension to .g.cs
This commit is contained in:
daver32
2023-01-28 01:52:04 +01:00
committed by GitHub
+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);
}
}