From e6b909e64224b4ae1618b5577425529cbb7f5c21 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Fri, 7 Jun 2024 15:08:21 +0100 Subject: [PATCH] generate attribute as g.cs and 0.9.5 --- Speckle.InterfaceGenerator/AutoInterfaceGenerator.cs | 2 +- Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Speckle.InterfaceGenerator/AutoInterfaceGenerator.cs b/Speckle.InterfaceGenerator/AutoInterfaceGenerator.cs index 40771e4..deb577f 100644 --- a/Speckle.InterfaceGenerator/AutoInterfaceGenerator.cs +++ b/Speckle.InterfaceGenerator/AutoInterfaceGenerator.cs @@ -80,7 +80,7 @@ public class AutoInterfaceGenerator : ISourceGenerator private static void GenerateAttributes(GeneratorExecutionContext context) { context.AddSource( - Attributes.GenerateAutoInterfaceClassname, + $"{Attributes.GenerateAutoInterfaceClassname}.g.cs", SourceText.From(Attributes.AttributesSourceCode, Encoding.UTF8) ); } diff --git a/Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj b/Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj index 06cbccb..69ec099 100644 --- a/Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj +++ b/Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj @@ -3,7 +3,7 @@ netstandard2.0 Latest enable - 0.9.4 + 0.9.5 true false false @@ -30,7 +30,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - +