Xamarin UWP VSTS NuGet Package Restore Fails -


i have xamarin app targeting uwp , android - decided try , target uwp in vsts. have following listed in packages.config:

<?xml version="1.0" encoding="utf-8"?> <packages>   <package id="commonservicelocator" version="1.3" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="corcav.behaviors" version="2.3.6" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="microsoft.bcl" version="1.1.10" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="microsoft.bcl.build" version="1.0.14" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="microsoft.net.http" version="2.2.29" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="newtonsoft.json" version="10.0.2" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="prism.core" version="6.3.0" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="prism.forms" version="6.3.0" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="prism.unity.forms" version="6.3.0" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="system.net.primitives" version="4.3.0" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="unity" version="4.0.1" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="xam.plugin.media" version="2.6.2" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="xam.plugins.settings" version="2.5.4" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="xam.plugins.texttospeech" version="2.0.0" targetframework="portable45-net45+win8+wp8+wpa81" />   <package id="xamarin.forms" version="2.3.3.193" targetframework="portable45-net45+win8+wp8+wpa81" /> </packages> 

i first received following error during nuget package restore:

system.io.compression 4.1.1 provides compile-time reference assembly system.io.compression on uap,version=v10.0, there no run-time assembly compatible win10-x64-aot. system.runtime.windowsruntime.ui.xaml 4.0.1 provides compile-time reference assembly system.runtime.windowsruntime.ui.xaml on uap,version=v10.0, there no run-time assembly compatible win10-x64-aot. system.net.requests 4.0.11 provides compile-time reference assembly system.net.requests on uap,version=v10.0, there no run-time assembly compatible win10-x64-aot. packages not compatible uap,version=v10.0 (win10-x64-aot) 

however, worked around issue setting build version vs 2017 , changing nuget version 3.3 3.5 in vsts, stuck @ following error:

****************************************************************************** finishing: sources ****************************************************************************** ****************************************************************************** starting: nuget restore **/*.sln ****************************************************************************** ============================================================================== task         : nuget installer description  : installs or restores missing nuget packages version      : 0.2.29 author       : microsoft corporation         : [more information](https://go.microsoft.com/fwlink/?linkid=613747) ============================================================================== c:\windows\system32\chcp.com 65001 active code page: 65001 detected nuget version 3.5.0.1938 / 3.5.0 systemvssconnection exists true c:\a\_tasks\nugetinstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.29\node_modules\nuget-task-common\nuget\3.5.0\nuget.exe restore -noninteractive c:\a\1\s\domoticzhome.sln -nocache failed load msbuild toolset   not load file or assembly 'microsoft.build, version=14.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' or 1 of dependencies. system cannot find file specified. error: c:\a\_tasks\nugetinstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.29\node_modules\nuget-task-common\nuget\3.5.0\nuget.exe failed return code: 1 packages failed install 

i see reference same error here https://github.com/microsoft/vsts-tasks/issues/3358 there no resolution.

how fix nuget package restore?


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -