We are looking to use Nuget to share code between repos.
I have created a Nuget package which contains all of the source code in a specified sub directory. In 7Zip I can explore it and see all of the files are present.
I need to import it into another project, maintaining the directory structure so the project can build, be debugged etc.
So I have:
../repo/applications/CommonCore
But CommonCore comes from the imported nuget package.
When I import this Nuget package no files seem to be present and there is no obvious way of controlling which directory it would go to.
I have read about using the contentFiles tag to specify all of the source files but this is infeasible for me as there are hundreds of files in various subdirectories so I attempted to use a format like:
<contentFiles>
<files include="Fabric\*.*" buildAction="Content" copyToOutput="true" />
</contentFiles>
and
<files>
<file src="*.*" target="contentFiles\Fabric" />
</files>
But this has not helped.
Am I misunderstanding how Nuget works? Or have I just implemented it incorrectly?