How can I add Assembly Reference so Nuget Pack can find it?

When my build runs, the Pack step fails with the following in the log:

[17:15:12][pack] Starting NuGet.exe 2.8.60318.667 from C:\Program Files (x86)\JetBrains\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT.nupkg\tools\NuGet.exe
[17:15:12][pack] Attempting to build package from 'ComForms.nuspec'.
[17:15:12][pack] Invalid assembly reference 'Ionic.Zip.dll'. Ensure that a file named 'Ionic.Zip.dll' exists in the lib directory.

MSBuild finds the assembly reference without a problem, so I know the file is in the output directory, but how can I refence the assembly such that the Pack step can find it?

Here is my Nuspec file:

<?xml version="1.0"?>
<package xmlns="">
    <authors>Perennial Software</authors>
    <owners>Perennial Software</owners>
    <description>Error processing form and Windows API calls.</description>
    <copyright>Copyright ©  2015</copyright>
        <dependency id="ComBase" version="1.0.10" />
<reference file="Ionic.Zip.dll" />

Please sign in to leave a comment.