Unable to open Xamarin iOS/Android Projects/Targets
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:
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
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
Please sign in to leave a comment.
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.
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.