Nuget publish with dependency
I have my library solution which has 3 projects:
Core
- holds base classes, required in package
Generator
- a source generator, required in package
Sample
- a test project, not required in package
How do I publish only Core and Generator projects, since they do not make sense without one other I thought it would be nice to include both of them into one package? How do I achieve this? All the guides I found seem kinda confusing, for now I would be happy with "just works" solution10 Replies
Thanks!
Gonna check this out later
This goes to which csproj? Both or..?
It does not work 😦
gimme a sec
https://github.com/MindHardt/Resources.Next
My project repo
GitHub
GitHub - MindHardt/Resources.Next: A sourcegen-powered resources en...
A sourcegen-powered resources engine aimed to be simple, transparent and debuggable. - MindHardt/Resources.Next
If I open .nupkg file I see this
No lib whatsoever
And keep it empty?
Rn I achieved the following:
Both Generator and Core are packed
They are visible to consumer (my other library)
But generator fails to work with error message "FileNotFoundException" "Could not load file or assembly 'Res
ources.Next.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Could not find specified file."
It is showed as a warning during build
Hm
Lemme check
Nah, still the same FileNotFound
GitHub
GitHub - MindHardt/Resources.Next at nuget-tests
A sourcegen-powered resources engine aimed to be simple, transparent and debuggable. - GitHub - MindHardt/Resources.Next at nuget-tests
I made a separate branch for these tests
?
Ah
1sec
No, the same
Pushed just now
That is all
Will I still be able to access Core from code?
It is needed both for generator and consumer
KK, lemme check
Same error 😦
Should I just move Core to a separate nuget?
Will it help?
Now there is no
lib
and analyzers
does not have a core ðŸ˜yeah, 1sec
No, there is no trace of Core
My IDE license expired lmao
Not today it seems
Thanks for your time mate, I do appreciate it