C
C#13mo ago
Feast

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
No description
3 Replies
Feast
FeastOP13mo ago
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.
Joschi
Joschi13mo ago
I'm not entirely certein, but I don't think Source Generators are available for .NET Framework.
Feast
FeastOP13mo ago
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.
Want results from more Discord servers?
Add your server