Just to loop back in case anyone was doing something similar, the nuspec file I used to make the package for my project on Nuget is below. This is what I used to publish to the Nuget feed. (You won't be able to use Nuget to get it unless you're making a
NETMF project and have Nuget 1.3 or greater installed.)
To explain, I have a solution with 4 projects, each of which builds to a set of files needed for NETMF projects. This is to keep the libraries individually small so users developing with them don't waste space on things they aren't using. Only two
of the projects make sense to package together and make available. The other two are considered utility or example code. My nuspec file lives in the root solution directory which is above the projects. The XML below shows how I package all the necessary files
together so a user can add the project reference, build and deploy without any other intervention.
The NETMF target requires the LE and BE (little endian and big endian, respectively) folders with same-named files as the project DLL. This is just a detail / consequence of programming for embedded systems. It might look like I'm being overly specific with
the file names but this is necessary since the PrebuiltDelegates project depends on MicroLinq and I receive duplicate file name errors if I don't do it this way. When I build ZIP files for release on CodePlex, I manually remove the duplicate libraries from
all the PrebuiltDelegates directories - this layout does it for me automatically.
<?xml version="1.0" encoding="utf-8"?>
<description>A small implementation of LINQ on the .NET Micro Framework.</description>
<file src="VikingErik.NetMF.MicroLinq\bin\Release\VikingErik.NetMF.MicroLinq.*" target="lib/netmf41/" />
<file src="VikingErik.NetMF.MicroLinq\bin\Release\le\VikingErik.NetMF.MicroLinq.*" target="lib/netmf41/le/" />
<file src="VikingErik.NetMF.MicroLinq\bin\Release\be\VikingErik.NetMF.MicroLinq.*" target="lib/netmf41/be/" />
<file src="VikingErik.NetMF.MicroLinq.PrebuiltDelegates\bin\Release\VikingErik.NetMF.MicroLinq.PrebuiltDelegates.*" target="lib/netmf41/" />
<file src="VikingErik.NetMF.MicroLinq.PrebuiltDelegates\bin\Release\le\VikingErik.NetMF.MicroLinq.PrebuiltDelegates.*" target="lib/netmf41/le/" />
<file src="VikingErik.NetMF.MicroLinq.PrebuiltDelegates\bin\Release\be\VikingErik.NetMF.MicroLinq.PrebuiltDelegates.*" target="lib/netmf41/be/" />