Unable to open Xamarin iOS/Android Projects/Targets

Answered

Hi,

the IDE does not seem to be able to open Xamarin Projects with iOS/Android targets (couldn't test WinPhone/UWP yet due to not having a Windows PC on hand right now). The projects are listed in the solution explorer but have an added "(load failed)" at the end. Is there something i am missing and if not will Rider support Xamarin Projects in the future or are there maybe technical difficulties which make it not possible?

regards Thomas

Error Messages:

Project 'projectname.Droid' load failed

The imported project "/Applications/Rider EAP.app/Contents/lib/ReSharperHost/macos-x64/mono/lib/mono/xbuild/Xamarin/Android/Xamarin.Android.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. /path/projectname/Droid/projectname.Droid.csproj

Project 'projectname' load failed

The imported project "/Applications/Rider EAP.app/Contents/lib/ReSharperHost/macos-x64/mono/lib/mono/xbuild/Xamarin/iOS/Xamarin.iOS.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. /path/projectname/projectname.csproj

2
2 comments

I ran into this as well, found a workaround for this particular issue under OSX. Doesn't make a build process work (which I suspect would be pretty difficult) but it at least gets the project to open so you can work in Rider and still handle the build process within Xamarin. There may well be a better way, but this worked for me. From terminal:

mkdir /Applications/Rider\ EAP.app/Contents/lib/ReSharperHost/macos-x64/mono/lib/mono/xbuild/Xamarin

ln -sf /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1 /Applications/Rider\ EAP.app/Contents/lib/ReSharperHost/macos-x64/mono/lib/mono/xbuild/Xamarin/iOS

That will link the Xamarin files where Rider expects to find them. The steps would need to be repeated any time Rider gets updated.

0

Thanks Chris, that is a great first step!
I hope there will be better Xamarin support in the future so that we are able to build the projects inside Rider as well.

0

Please sign in to leave a comment.