© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
35 replies
mindhardt

Nuget publish with dependency

I have my library solution which has 3 projects:
Core
Core
- holds base classes, required in package
Generator
Generator
- a source generator, required in package
Sample
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ C# Analyzer with nuget dependency
C#CC# / help
3y ago
❔ NuGet dependency Hell
C#CC# / help
3y ago
Determining Nuget Dependency Order
C#CC# / help
2y ago
Unresolved NuGet Dependency References
C#CC# / help
4y ago