UWP项目引用阻止VSTS构建中的Nuget恢复

时间:2017-10-16 14:03:35

标签: xamarin xamarin.forms uwp azure-devops azure-pipelines

我有一个Xamarin Forms应用程序,我正在尝试在VSTS内部构建。还有一个共享库,所有项目都参考,这似乎导致阻止UWP应用程序构建的问题。 Nuget Restore步骤的输出如下:

Errors in d:\a\1\s\myapp\myapp.Mobile\myapp.Mobile.UWP\myapp.Mobile.UWP.csproj
    Unable to resolve 'd:\a\1\s\myapp\myapp.Common\myapp.Common.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Mobile\myapp.Mobile.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Common\myapp.Common.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-arm)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Mobile\myapp.Mobile.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-arm)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Common\myapp.Common.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-arm-aot)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Mobile\myapp.Mobile.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-arm-aot)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Common\myapp.Common.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-x64)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Mobile\myapp.Mobile.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-x64)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Common\myapp.Common.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-x64-aot)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Mobile\myapp.Mobile.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-x64-aot)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Common\myapp.Common.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-x86)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Mobile\myapp.Mobile.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-x86)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Common\myapp.Common.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-x86-aot)'.
    Unable to resolve 'd:\a\1\s\myapp\myapp.Mobile\myapp.Mobile.csproj (>= 1.0.0)' for 'UAP,Version=v10.0.10586 (win10-x86-aot)'.

NuGet Config files used:
    d:\a\1\s\myapp\nuget.config

Feeds used:
    C:\Users\buildguest\.nuget\packages\
    https://api.nuget.org/v3/index.json
    http://nuget.syncfusion.com/nuget_xamarin/nuget/getsyncfusionpackages/xamarin/

Installed:
    156 package(s) to packages.config projects
    123 package(s) to d:\a\1\s\myapp\myapp.Mobile\myapp.Mobile.UWP\myapp.Mobile.UWP.csproj

myapp.common是共享库,myapp.mobile是Xamarin Forms共享代码。

似乎VSTS正在努力引用其中任何一种。

我可以采取哪些措施来解决这个问题,以便在VSTS中构建?

一切都在本地构建和运行 - 就像它一直一样!

修改

我的构建任务是:

Initialize Agent
Initialize Job
Get Sources
NuGet restore **/*.sln << `The only change I've made here is to put a path to my own Nuget.Config as I'm using Syncfusion components so need to add a reference to their nuget repo aswell`
Build
Publish

0 个答案:

没有答案