Last post Feb 16, 2015 08:57 PM by Shawn - MSFT
Feb 09, 2015 02:02 PM|tangrl|LINK
Tried to upgrade the NuGet packages this morning. When upgrading Microsoft.AspNet.WebApi.OData, getting the following error: "Already referencing a newer version of 'System.Spatial'. It seems that the latest version of Microsoft.AspNet.WebApi.OData is referencing
old version (5.6.0) of System.Spatial. The latest version of System.Spatial should be 5.6.3.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Client (≥ 5.2.2)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.4)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Core (≥ 5.2.2 && < 5.3.0)'.
Attempting to resolve dependency 'Microsoft.Data.OData (≥ 5.6.0)'.
Attempting to resolve dependency 'System.Spatial (= 5.6.0)'.
Attempting to resolve dependency 'Microsoft.Data.Edm (= 5.6.0)'.
Installing 'System.Spatial 5.6.0'.
Successfully installed 'System.Spatial 5.6.0'.
Installing 'Microsoft.Data.Edm 5.6.0'.
Successfully installed 'Microsoft.Data.Edm 5.6.0'.
Installing 'Microsoft.Data.OData 5.6.0'.
Successfully installed 'Microsoft.Data.OData 5.6.0'.
Installing 'Microsoft.AspNet.WebApi.OData 5.4.0'.
Successfully installed 'Microsoft.AspNet.WebApi.OData 5.4.0'.
Install failed. Rolling back...
Already referencing a newer version of 'System.Spatial'.
Feb 16, 2015 08:57 PM|Shawn - MSFT|LINK
Based on your description, it seems that you have already install the newer version, so the package would install failed.
For this situation, you could try to uninstall the nuget package with the following command:
-force will continue regardless of dependencies.
Then try to upgrade.
For more information, you could refer to: