Roslyn not finding a referenced package
Hey there
Over the past months I've really fallen in love with writing my own Roslyn code generators. My Discriminated Unions library heavily relies on this, and because I have noticed that some of my generators share the same basic code, I wanted to write a simple library I could use in my various projects : https://github.com/code-of-chaos/cs-code_of_chaos-generator_tools
The issue now is that I try and use the uploaded nuget package in the consumer Roslyn generator found here: https://github.com/AterraEngine/unions-cs/blob/core/src/AterraEngine.Unions.Generators/AterraEngine.Unions.Generators.csproj
Within the IDE (rider) everything seems to be fine in the generator's code as it discovers all the types within the package and I'm able to use them when I'm writing code, but whenever I try and use the generator no code appears and I get the error :
I've been stuck at this for a few hours now, and I'm lost at where I've created some issue
GitHub
GitHub - code-of-chaos/cs-code_of_chaos-generator_tools: A set of t...
A set of tools to help you create code generators more easily - code-of-chaos/cs-code_of_chaos-generator_tools
GitHub
unions-cs/src/AterraEngine.Unions.Generators/AterraEngine.Unions.Ge...
A Union Library for DotNet. Contribute to AterraEngine/unions-cs development by creating an account on GitHub.
1 Reply
I haven't created a new latest nuget package for
AterraEngine.Unions.Generators
yet as the code isn't working. Within the project there is a Sample project AterraEngine.Unions.Generators.Sample
which when I try and build outputs:
AterraEngine.Unions.Generators
is on the latest uploaded version of CodeOfChaos.GeneratorTools
which is 1.1.0
csproj file of AterraEngine.Unions.Generators
: (had to split the file because of max message length)
csproj file of CodeOfChaos.GeneratorTools
:
... what the .. yeah that fixed it?!?
I'm so confused why this works ... but okay
right, I've learned something new today then ...
Thanks so much!