Skip to content

Source generators guide/help #1578

Closed Answered by pictos
Cybrosys asked this question in Q&A
Nov 29, 2023 · 2 comments · 12 replies
Discussion options

You must be logged in to vote

The source generator project has attributes that the app decorates its classes with, so that is why I can't use ReferenceOutputAssembly="false". I tried moving the attributes to a separate project, but then the source generator stopped working for some reason.

I used this approach for SG with attributes and it works. You can see here
#1321

look for src/CommunityToolkit.Maui/CommunityToolkit.Maui.csproj

I'll be able to look your code sometime next week

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
12 replies
@Cybrosys
Comment options

@pictos
Comment options

pictos Nov 29, 2023
Collaborator

Answer selected by Cybrosys
@Cybrosys
Comment options

@pictos
Comment options

pictos Nov 30, 2023
Collaborator

@IeuanWalker
Comment options

@pictos
Comment options

pictos Dec 6, 2023
Collaborator

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants