I have a visual studio solution with the following structure
Project 1
Reference Projec2
Reference Projec3
Project 2
Project 3
All above are .NET 4 projects. I am trying to create a nuget package for Project 1, however using the default nuspec file, the package does not include the project2 and 3 assemblies in the net40 folder. Please note that I do not want to create separate packages for project2 and 3 as these assemblies are only ever used by Project 1.
To get around this, I am doing something like this
<files>
<file src="bin\release\*.dll" target="lib\net40"
exclude="**\Project1.dll" />
</files>
I was wondering if the above is the best solution?
Also for the Symbol package, it does not include .pdb files for Project 2 and 3?
I have also noticed that on the nuget website it says that
if you specify any files, the conventions are ignored and only the files listed in the .nuspec file are included in the package.
I don't see the above happening because when i use the element, i still get the Project1 assembly in the lib folder by convention, therefore I had to exclude it otherwise nuget throws exception that the file already exists.Any idea?