© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
CrosRoad95

source generator razor components

i'm trying to source generate razor component
did a following thing ( see image ), but component is not rendering, but if i do
new foobar.SampleSourceGeneratedComponent()
new foobar.SampleSourceGeneratedComponent()
in any c# file it works - no compilation or runtime errors, what am i doing wrong?
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

source generator
C#CC# / help
3y ago
❔ Source generator & protobuf
C#CC# / help
4y ago
Source generator not working?
C#CC# / help
12mo ago
Source Generator IDE interaction
C#CC# / help
14mo ago