helgans
helgans

Reputation: 353

Including a dependent assembly into a NuGet package in VS2017

I have a solution with 2 projects (NET Core). The first project (library) contains the main assembly, the other project (library) contains an assembly with resources, interfaces and other stuff. The main project references the second project.

I am using Visual Studio 2017. When I create a NuGet package from the main project, the satellite assembly is not included in the package's lib folder. How can this be achieved?

Note: I don't want to reference the satellite assembly as NuGet package, I want this assembly to be part of the main package.

Upvotes: 5

Views: 3021

Answers (1)

Dogu Arslan
Dogu Arslan

Reputation: 3384

Try: nuget pack mainproject.csproj -IncludeReferencedProjects

Upvotes: 2

Related Questions