From 8c93356fc2643e6f2293b25d6d44b07609270926 Mon Sep 17 00:00:00 2001 From: octo127 <26832968+octo127@users.noreply.github.com> Date: Sun, 24 Mar 2024 21:14:37 +0900 Subject: [PATCH] Fix InjectIgnore not being ignored --- .../VContainerIncrementalSourceGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VContainer.SourceGenerator/VContainerIncrementalSourceGenerator.cs b/VContainer.SourceGenerator/VContainerIncrementalSourceGenerator.cs index 939c3ec3..56a79084 100644 --- a/VContainer.SourceGenerator/VContainerIncrementalSourceGenerator.cs +++ b/VContainer.SourceGenerator/VContainerIncrementalSourceGenerator.cs @@ -106,7 +106,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context) var attributeName = attributeSymbol.ContainingType.ToDisplayString(); // Ignore - if (attributeName == "VContainer.InjectIgnore") + if (attributeName == "VContainer.InjectIgnoreAttribute") return null; } }