-
I'm writing a fairly simple SG but for some reason I'm getting the following error and I'm not quite sure why I'm getting it.
Here are few facts:
And that's all I have. namespace EventGenerator;
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Text;
[Generator]
file sealed class EventGenerator : IIncrementalGenerator
{
public void Initialize(IncrementalGeneratorInitializationContext context)
{
}
} Here is a link to the project. |
Beta Was this translation helpful? Give feedback.
Answered by
333fred
Dec 10, 2024
Replies: 3 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
This is because your generator is a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
333fred
-
Thank you guys! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is because your generator is a
file
type, which mangles the name. Do not make analyzers or generatorsfile
types.