Fix RouteFilter generation

This commit is contained in:
2024-09-25 21:15:47 +02:00
parent 6688bfc673
commit 82209fac7f
2 changed files with 3 additions and 2 deletions
@@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>0.8.11</Version>
<Version>0.8.12</Version>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Alexandru Macocian</Authors>
@@ -23,7 +23,8 @@ public class RouteFilterAttributeGenerator : IIncrementalGenerator
.WithConstructor(SyntaxBuilder.CreateConstructor(Constants.RouteFilterAttributeName)
.WithModifier(Constants.Public))
.WithAttribute(SyntaxBuilder.CreateAttribute("AttributeUsage")
.WithArgument(AttributeTargets.Class | AttributeTargets.Method)
.WithArgument(AttributeTargets.Method)
.WithArgument(AttributeTargets.Class)
.WithArgument("Inherited", false)
.WithArgument("AllowMultiple", true))
.WithBaseClass(nameof(Attribute))