c# - NuGet package solution with multiple projects -
i have solution 3 class library projects in it. i'm using dependency injection create loose coupling among these projects are:
- services actual functions
- domain
- repository
so, ultimately, nuget package exposing functions in "services" service functions use repository methods , domain objects. should included in package.
here's i'm confused:
- how make sure nuget package include necessary pieces in i.e. domain objects , repository methods. domain objects exposed repository methods consumed service functions they're not visible users. nevertheless, service functions need them must included in package.
- i'm confused tying 3 projects typically done @ top level. in other words, installing nuget package not enough dependencies need resolved. example, if add nuget package in new asp.net project, i'd have resolve these dependencies in startup.cs seems bit awkward. not sure how handle part.
- each project has own dependencies. example, repository project uses azure table storage , services project uses newtonsoft.json. want make sure dependencies covered when user installs nuget package in new project.
how go creating nuget package?
Comments
Post a Comment