Skip to content

Image for xamarin ios 16.4: unable to restore solution if it contains a Xamarin.Android project #2610

Open
@softlion

Description

@softlion

Describe the solution you'd like
Image 16.4 (xamarin ios) does not have this issue.
Image 16.2 does not have this issue.

[command]/bin/bash -c /usr/bin/find . -name '*.sln' -type f -print0 | /usr/bin/xargs -0 grep -l 'xxxxx.iOS.csproj' | /usr/bin/xargs -I '{}' nuget restore '{}' -DisableParallelProcessing
MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin'.
/Users/runner/work/1/s/xxxxx/xxxxx.Droid/xxxxx.Droid.csproj(150,13): error MSB4226: The imported project "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/Xamarin/Android/Xamarin.Android.CSharp.targets" was not found. Also, tried to find "Xamarin/Android/Xamarin.Android.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) - "/Library/Frameworks/Mono.framework/External/xbuild/" . These search paths are defined in "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/MSBuild.dll.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.
/var/folders/lf/qycgv4fd6yjcj__vqnk_wxhm0000gn/T/NuGetScratch/py8ev7ym.9vl.nugetrestore.targets(382,5): warning MSB4181: The "MSBuild" task returned false but did not log an error. [/var/folders/lf/qycgv4fd6yjcj__vqnk_wxhm0000gn/T/NuGetScratch/z6gs83uf.j7i.nugetinputs.targets]
/var/folders/lf/qycgv4fd6yjcj__vqnk_wxhm0000gn/T/NuGetScratch/py8ev7ym.9vl.nugetrestore.targets(394,5): warning : Skipping restore for project '/Users/runner/work/1/s/xxxxx/xxxxx.Droid/xxxxx.Droid.csproj'. The project file may be invalid or missing targets required for restore. [/var/folders/lf/qycgv4fd6yjcj__vqnk_wxhm0000gn/T/NuGetScratch/z6gs83uf.j7i.nugetinputs.targets]

##[error]/bin/bash failed with return code: 1
##[error]/bin/bash failed with error: /bin/bash failed with return code: 1

Describe alternatives you've considered
Rollback to 16.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildRelated to App Center's Build servicefeature requestNew feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions