g.cs file not included in compile when .NET Framework
I wrote a
SourceGenerator
generating code like partial class
for wpf
application.
.NET
is completed but .NET Framework
failed to compile. Whats happening?3 Replies
Error is [ Can't find static member "Current..." in class "LangKeys" ]
But I can see target file correctly contains all the member I wanna generate.
I'm not entirely certein, but I don't think Source Generators are available for .NET Framework.
Solved, I used another
.csproj
template and finished compile. I'm sure the problem comes from that old .csproj
but I can't figure out which tag causes this.