Base solution for your next web application
Open Closed

iOS Xamarin build failing on VSTS #6268


User avatar
0
smackofham created

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?


1 Answer(s)
  • User Avatar
    0
    smackofham created

    OK, so for anyone who follows behind me with the same issue, it turns out we needed to downgrade netstandard library to 2.0.1 for this to work. Seems to be a breaking change in the 2.0.3 version?