How to specify different nuget package versions for different build configurations?
<p>I'd like to specify different package versions for different project configurations. I know what this would look like in my .csproj file for non-NuGet dependencies ("bare" DLLs), but I'd like to try and get this working with NuGet packages too.</p>

<p>The problem is that NuGet dependencies are specified in packages.config and not in the .csproj file, where I could use the MSBuild <code>Condition</code> attribute. This is compounded by the fact that there does not appear to be any documentation for packages.config and the attributes it supports.</p>

<p>Can this be done? How?</p>