-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image for xamarin ios 16.4: unable to restore solution if it contains a Xamarin.Android project #2610
Comments
This is incredibly painful. The best solution is to have a post-clone step that removes the Android projects from the solution at runtime, then the NuGet restore step of the entire solution will work. There's a pretty cool command called Note that trying to run NuGet restore just for certain projects is inadvisable, because project dependencies don't get resolved such that it will restore the projects in the right order. You really have to NuGet restore at the solution level. |
This week new issue. My customer's project does not compile anymore, with 16.4 oe 16.2, maybe because Visual Studio Mac has been removed from the images. I switched to Azure pipelines to build the IPAs, and published them to Appcenter Distribute. |
Yes, the problem stems from Xamain.iOS and Xamarin.Android not being on the macOS-13 images that are used by AppCenter for Xamarin iOS builds (via Azure DevOps). Setting the mono version back to an earlier version in an AppCenter build configuration gets around that, but causes other problems because it uses Xcode 14.2 rather than 15.x. |
Just in case it helps anyone I was having the same issue and followed @brunck advice of using |
Hi, Thanks |
I create this gist |
@dinisvieira Can you help me please with a complete sample of your appcenter-post-clone.sh I do this script ans i have an error -> Could not find solution or directory My script SLN_FILE=$APPCENTER_SOURCE_DIRECTORY/project/project.sln dotnet sln $SLN_FILE remove $ANDROID_CSPROJ_FILE If i add in the script an echo $SLN_FILE; -> i have in the build -> /Users/runner/work/1/s/project/project.sln |
It's not easy for me to help you without knowing your solution/folder structure. For my scenario I'm running for the iOS project so I "go back/up" to the Solution and Android projects. (each |
Describe the solution you'd like
Image 16.4 (xamarin ios) does not have this issue.
Image 16.2 does not have this issue.
Describe alternatives you've considered
Rollback to 16.2
The text was updated successfully, but these errors were encountered: