I have the following structure in my nuspec:
<package>
<metadata>
<references>
<reference file="A.dll"/>
</references>
</metadata>
<files>
<file src="A.dll" target="lib\net40\A.dll"/>
<file src="B.dll" target="lib\net40\B.dll"/>
</files>
</package>
I didn't include B.dll
in the references, because it is optional for the user to add as a reference.
Now, when I perform Update-Package
, it updates the path to A.dll
, but not to B.dll
when you've added it as a reference.
How can I keep B.dll
as an optional lib
file, but still make it update when the NuGet package is updated?
I am using the Visual Studio 2013 Package Manager Console.