C
C#•9mo ago
mindhardt

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" solution
10 Replies
mindhardt
mindhardtOP•9mo ago
Thanks! Gonna check this out later This goes to which csproj? Both or..? It does not work 😦 gimme a sec
mindhardt
mindhardtOP•9mo ago
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
mindhardt
mindhardtOP•9mo ago
If I open .nupkg file I see this
No description
mindhardt
mindhardtOP•9mo ago
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
mindhardt
mindhardtOP•9mo ago
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
mindhardt
mindhardtOP•9mo ago
I made a separate branch for these tests ? Ah 1sec No, the same Pushed just now
mindhardt
mindhardtOP•9mo ago
No description
mindhardt
mindhardtOP•9mo ago
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?
mindhardt
mindhardtOP•9mo ago
Now there is no lib and analyzers does not have a core 😭
No description
mindhardt
mindhardtOP•9mo ago
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
Want results from more Discord servers?
Add your server