Xamarin task fails to restore netstandard nuget dependencies
See original GitHub issueWhile the project builds and run on the same machine (with xamarin studio), the xamarin task seems to fail when a netstandard nuget package is referenced. Sample log:
2016-11-03T12:00:04.9033600Z Installing 'HockeySDK.Xamarin 4.1.0'.
2016-11-03T12:00:04.9987790Z Added file 'HockeySDK.dll' to folder '/Users/cyprienautexier/myagent/_work/1/s/packages/HockeySDK.Xamarin.4.1.0/lib/portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10'.
2016-11-03T12:00:05.0001590Z Added file 'HockeySDK.dll' to folder '/Users/cyprienautexier/myagent/_work/1/s/packages/HockeySDK.Xamarin.4.1.0/lib/MonoAndroid403'.
2016-11-03T12:00:05.0013860Z Added file 'HockeySDK.AndroidBindings.dll' to folder '/Users/cyprienautexier/myagent/_work/1/s/packages/HockeySDK.Xamarin.4.1.0/lib/MonoAndroid403'.
2016-11-03T12:00:05.0026000Z Added file 'HockeySDK.dll' to folder '/Users/cyprienautexier/myagent/_work/1/s/packages/HockeySDK.Xamarin.4.1.0/lib/Xamarin.iOS10'.
2016-11-03T12:00:05.0319590Z Added file 'HockeySDK.iOSBindings.dll' to folder '/Users/cyprienautexier/myagent/_work/1/s/packages/HockeySDK.Xamarin.4.1.0/lib/Xamarin.iOS10'.
2016-11-03T12:00:05.0480360Z Added file 'HockeySDK.Xamarin.4.1.0.nupkg' to folder 'HockeySDK.Xamarin.4.1.0'.
2016-11-03T12:00:05.0493710Z WARNING: 'HockeySDK.Xamarin.4.1.0/HockeySDK.Xamarin.4.1.0.nupkg' already exists. Skipping...
2016-11-03T12:00:05.0506710Z Successfully installed 'HockeySDK.Xamarin 4.1.0'.
2016-11-03T12:00:35.4744470Z Installing 'Xamarin.SWRevealViewController 2.3.0'.
2016-11-03T12:00:35.4898540Z Added file 'Xamarin.SWRevealViewController.dll' to folder '/Users/cyprienautexier/myagent/_work/1/s/packages/Xamarin.SWRevealViewController.2.3.0/lib/Xamarin.iOS'.
2016-11-03T12:00:35.4911840Z Added file 'Xamarin.SWRevealViewController.2.3.0.nupkg' to folder 'Xamarin.SWRevealViewController.2.3.0'.
2016-11-03T12:00:35.4927100Z WARNING: 'Xamarin.SWRevealViewController.2.3.0/Xamarin.SWRevealViewController.2.3.0.nupkg' already exists. Skipping...
2016-11-03T12:00:35.4938880Z Successfully installed 'Xamarin.SWRevealViewController 2.3.0'.
2016-11-03T12:00:53.9533510Z Using credentials from config. UserName: pat
2016-11-03T12:01:16.7496500Z Unable to find version '0.1.1-alpha0009' of package 'GeekLearning.RestKit.Core'.
2016-11-03T12:01:16.7509530Z Unable to find version '0.1.1-alpha0009' of package 'GeekLearning.RestKit.Json'.
2016-11-03T12:01:16.7522250Z Unable to find version '1.0.0' of package 'Microsoft.AspNetCore.JsonPatch'.
2016-11-03T12:01:16.7534880Z Unable to find version '4.0.1' of package 'Microsoft.CSharp'.
2016-11-03T12:01:16.7551650Z Unable to find version '1.0.0' of package 'Microsoft.Extensions.DependencyInjection.Abstractions'.
2016-11-03T12:01:16.7564930Z Unable to find version '1.0.0' of package 'Microsoft.Extensions.Options'.
2016-11-03T12:01:16.7577260Z Unable to find version '1.0.0' of package 'Microsoft.Extensions.Primitives'.
2016-11-03T12:01:16.7588840Z Unable to find version '1.0.1' of package 'Microsoft.NETCore.Platforms'.
2016-11-03T12:01:16.7601000Z Unable to find version '4.0.1' of package 'Microsoft.Win32.Primitives'.
2016-11-03T12:01:16.7618580Z Unable to find version '1.6.0' of package 'NETStandard.Library'.
2016-11-03T12:01:16.7630360Z Unable to find version '9.0.1' of package 'Newtonsoft.Json'.
I found this stackoverflow thread but the cause seems to be different.
Edit: I feel like this might be more of a xamarin documentation issue because I can’t see a project.json in the Xamarin.ios project. (I started from there : https://blog.xamarin.com/net-standard-library-support-for-xamarin/ )
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Troubleshooting NuGet Package Restore in Visual Studio
Package Restore tries to install all package dependencies to the correct state matching the package references in your project file ...
Read more >NuGet Restore task fails for .Net Core project migrated with VS ...
Dear all, I have .Net Core project which has been converted with Visual Studio 2017. The build plan especially the task NuGet Restore...
Read more >c# - An error occurred while trying to restore packages. Please ...
For me I cloned a solution (vs2015/NuGet3.4) that had a nuget dependency on a pre-release package that had been superceded. Nuget failed to...
Read more >Problem: Unable to resolve dependencies of NuGet packages
Solution · Clear the NuGet cache files. You do this in the following way: In the toolbar of Visual Studio, navigate to Tools...
Read more >Nuget restore - system cannot find file - Microsoft.Build ...
Everytime I try to run Nuget restore I get this error. I get on another server that I am trying to put a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has been completely fixed with the new xamarin and nuget tasks + visual studio for mac 😃. As far as I’m concerned everything works as expected now. Thanks
The changes to XamariniOS task are deployed to VSTS. There is an option available to not run nuget restore as part of the task now.
Please open a new issue if you see issues with the NuGet task.
Thanks, Madhuri