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?![No description](https://cdn.answeroverflow.com/1168434412313133096/9ac2f881d5958e8521f8988a959dde3d.png)
![No description](https://cdn.answeroverflow.com/1168434412581564416/c954c4aa8878a80689d21906e17f6619.png)
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.