C
C#3y ago
Ruttie

✅ Source-gen on a .shproj

I have a project with one shproj and multiple csprojs. However, the source-generators added to the csprojs do not affect the files of the shproj. Is there a way to add the source-generator to the shproj, or something like that?
2 Replies
333fred
333fred3y ago
No shprojs are nothing more than a collection of files that get added to other projects Analyzers and generators need to run in the context of the other project, not the shproj And, to be clear, your generator can never affect a file itself You can only add new files to a project, not modify existing files
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?