ThreadSky
About ThreadSky
Log In
devlead.se
•
18 days ago
Deep down #dotnet #csharp source generation rabbit hole testing stuff... but can't stop thinking just because I can, should I?🤣
Comments
Log in
with your Bluesky account to leave a comment
[–]
simoncropp.bsky.social
•
18 days ago
does this make things easier?
0
1
reply
[–]
simoncropp.bsky.social
•
18 days ago
https://github.com/VerifyTests/Verify.SourceGenerators
2
1
reply
[–]
devlead.se
•
18 days ago
Yes it does! I'm obviously already using Verify 🤩 it's super helpful essentially have two unit tests generating loads of snapshots. So already happy customer 😎
0
1
reply
[–]
simoncropp.bsky.social
•
18 days ago
let me know if i an improve the source gen integration, as i have not used it myself
1
1
reply
[–]
devlead.se
•
18 days ago
Will do. Perhaps the sample needs updating; the last time I checked, it used an old version of Microsoft.CodeAnalysis.* and generated warnings if on newer.
0
reply
[–]
kristinadmishra.bsky.social
•
18 days ago
Something I often find myself saying...
1
reply
[–]
philco.bsky.social
•
18 days ago
I wrote one for automatically tagging EF queries with source info a few months back. I don't even use entity framework, just seemed like fun
https://thirty25.blog/blog/2025/04/ef-core-source-gen-interceptors
2
1
reply
[–]
simoncropp.bsky.social
•
18 days ago
that is very cool
1
1
reply
[–]
philco.bsky.social
•
18 days ago
I appreciate that.
Been ten years since I've been in a world that was using SQL Server and Entity Framework, but back then I would have loved this.
Very fun project to build and see come together though
0
1
reply
[–]
simoncropp.bsky.social
•
18 days ago
i will show the EF devs at work
1
reply
[–]
kirillosenkov.com
•
18 days ago
I found that for many simple cases generating using MSBuild WriteLineToFile is better than using source generators
2
1
reply
[–]
devlead.se
•
18 days ago
Used to be a heavy T4 user, IMHO a shame it's gotten neglected.
But when working with referenced assemblies attributes etc. source generators proven really powerful.
But with great power comes great responsibility 😎
1
1
reply
[–]
kirillosenkov.com
•
18 days ago
there's
https://github.com/mono/t4
that is quite modern, have you seen that?
2
1
reply
[–]
devlead.se
•
18 days ago
Yip, contributed to that too.
1
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments
https://thirty25.blog/blog/2025/04/ef-core-source-gen-interceptors
Been ten years since I've been in a world that was using SQL Server and Entity Framework, but back then I would have loved this.
Very fun project to build and see come together though
But when working with referenced assemblies attributes etc. source generators proven really powerful.
But with great power comes great responsibility 😎