We have moved to GitHub Issues
Created by Marc Goodson 03 May 2017, 08:07:29 Updated by Shannon Deminick 24 May 2017, 05:41:11Tags: Unscheduled
Subtask of: U4-9609
Nuget install of Umbraco 7.6 fails in Visual Studio 2015 and below if Nuget Package Manager is less than v 3.5 (VS 2015 ships with version 3,0 of Nuget package manager)
Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp
An error occurred while downloading package 'System.Threading.Tasks.Dataflow 4.6.0' from source 'https://www.nuget.org/api/v2/'
Upgrading to latest Nuget Package manager resolves the issue.
Worth adding a note somewhere to this affect.
I was getting the same error in VS 2013 and VS 2015. Even after updating Nuget (2.5 -> 4.0 rc2) I continued to get the same error in VS 2013 but updating Nuget did resolve the issue VS 2015.
I have upgraded successfully from 7.5.13 to 7.6.1 with VS 2015 (Nuget 3.4.4). However, the build fails on the build server (Jenkins). I've tried updating Nuget on the server, but still no luck. Is there any known fix for build environments with no VS installed?
Excerpt form build log:
[...]\.nuget\NuGet.targets(100,9): error : 'Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp'.
[...]\.nuget\NuGet.targets(100,9): error : 'System.Threading.Tasks.Dataflow' already has a dependency defined for 'System.Collections'.
You also need that NuGet version on your build server and make sure to use it.
For 7.6.2 we'll update the minClientVersion to help with this issue - https://docs.microsoft.com/en-us/nuget/schema/nuspec#optional-metadata-elements
I was indeed updating the wrong instance of nuget.exe on the server. I managed to build with the correct one at 3.5.5. Thanks!
@sebastiaan (and @zpqrtbnk since you have been working on build refactoring) we should do a couple of things:
Umbraco.Tests.Benchmarksdoesn't contain this legacy stuff so the powershell build to build the docs was failing because of inconsistencies) ** http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html ** https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore#migrating-to-automatic-restore
I've pulled in this PR in the meantime
@Shandem Yup, that's all really good points! The new build script downloads vLatest nuget.exe indeed, I might have borrowed that from your scripts! ;)
Just to be clear this PR was merely for people actually trying to install Umbraco in their VS. Apparently one or more of our updated dependencies only work on NuGet 3.4+ :)
Backwards Compatible: True
Affected versions: 7.6.0
Due in version: 7.6.2