Allow RouteFilter on all

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