我有一个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