I can't figure out how to ship a .Net library that also includes a Roslyn source generator, and have the source generator access the source code of the main project, without adding an explicit reference from the main project to the generator.
Presently, my source generator only sees the source code of my lib, but not the source code of the main calling project.
Here is how I set up my project:
User "console" test project -> project dependency on -> My lib -> project dependency on -> My source generator
My lib and my source generator are distributed together and I wanted for the user to reference the lib but not have to worry about setting up the source generator as well.