iOS Xamarin build failing on VSTS #6268
We are attempting to create a CI/CD build the ASP.NET Zero iOS app in VSTS.
We are using the Xamarin iOS build template.
After the NuGet restore task (NuGet 4.3.0) we get an error in the build:
/Users/vsts/agent/2.144.0/work/13/s/Trunk/aspnet-core/src/AgileDemo.Mobile.iOS/AgileDemo.Mobile.iOS.csproj(378,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ../../packages/NETStandard.Library.2.0.3/build/netstandard2.0/NETStandard.Library.targets.
If I list the packages directory I see that the NETStandard.Library.targets file is located here: ./packages/netstandard.library/2.0.3/build/netstandard2.0 not here: /packages/NETStandard.Library.2.0.3/build/netstandard2.0
It appears that the project isn't looking for a 2.0.3 subdirectory under netstandard.library, it's looking for a directory named netstandard.library.2.0.3.
How can we properly resolve this issue?