Specifying Explicit Assembly References

Topics: Ecosystem, General
Dec 21, 2012 at 12:13 AM

I have the following nuspec file:

<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
        <owners />
            <reference file="Framework.dll" />
        <file src="bin\Release\Framework.dll" target="lib\net40-client" />
        <file src="bin\Release\CodeContracts\Framework.Contracts.dll" target="lib\net40-client" />

when adding the resulting package to a project both dlls are added as references and, as you would expect, upon removing contracts.dll so that the project compiles contract.dll is then not copied to sit next to framework.dll (I have version 2.2.31210.9045 of nuget).

Dec 21, 2012 at 7:11 AM

Can you share the package? And what type of project did you install it to?

Dec 21, 2012 at 12:38 PM

It was installed on a class library project.  What's the best way to get you the package?

Dec 26, 2012 at 7:26 PM

Go ahead and create a new issue and attach your package to it. Thanks for reporting.