Context
I am building my package using Visual Studio (2022). My solution has two projects, the project to be packaged (MyComponent
) is referencing to an other project (Core
).
All package configuration metadata is in my MyComponent.csproj
file, so the .nuspec
file is automatically generated during the build in the /obj
folder as MyComponent.1.0.0.nuspec
Issue
The generated package contains only one assembly: MyComponent.dll
. I would like to include the Core.dll
assembly.
Question
How and where to configure the build process to include the Core.dll
assembly? (or would it be better to have Core
as a package too, and configure package dependency? Also how, if I have no direct control on the .nuspec
file content?
(In case this question can be answered in more generic form, then the would be extra useful. I mean, having .nuspec automatically generated, all XML schema we knew how to set there, not how can be set in .csproj file?)