trying to fix build error

This commit is contained in:
Adam Hathcock
2024-05-20 08:41:27 +01:00
parent 6309adfde6
commit 065d6c75f7
5 changed files with 589 additions and 8 deletions
+6 -3
View File
@@ -13,19 +13,20 @@ internal class Attributes
public static readonly string AttributesSourceCode =
$@"
#pragma warning disable IDE0005
using System;
using System.Diagnostics;
#nullable enable
namespace {AttributesNamespace}
namespace {AttributesNamespace}
{{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)]
[Conditional(""CodeGeneration"")]
internal sealed class {GenerateAutoInterfaceClassname} : Attribute
{{
public string? {VisibilityModifierPropName} {{ get; init; }}
public string? {InterfaceNamePropName} {{ get; init; }}
public string? {VisibilityModifierPropName} {{ get; init; }}
public string? {InterfaceNamePropName} {{ get; init; }}
public {GenerateAutoInterfaceClassname}()
{{
@@ -38,5 +39,7 @@ namespace {AttributesNamespace}
{{
}}
}}
#pragma warning enable IDE0005
";
}
@@ -4,11 +4,6 @@
<LangVersion>Latest</LangVersion>
<Nullable>enable</Nullable>
<PackageVersion>0.9.2</PackageVersion>
<developmentDependency>true</developmentDependency>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NoPackageAnalysis>true</NoPackageAnalysis>
<RootNamespace>Speckle.InterfaceGenerator</RootNamespace>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>