Can't debug or run Xamarin Mac app in Jetbrains Rider IDE

I have a Xamarin Mac project that was primarily developed on Visual Studio 2019.  Our team is looking to make the migration over to Jetbrains Rider.  I did the import of VS settings on initial load up of my project.  The project Cleans/Builds successfully in the Rider IDE and I am able to successfully run the application outside of the IDE (in finder). However, when I try to run it and debug in the IDE itself I get FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: Could not find the runtime library libxammac.dylib at runtime.  This screams IDE/project configuration issue but I don't really know where to begin to look. There isn't much online to go off of.

0
5 comments

Hello Aurrutia ,

Thank you for contacting Rider Forum and sorry for the delay in the reply. 

Could you please try tweaking the MSBuild version in Settings | Build, Execution, Deployment | Toolset and Build

If that does not help, please provide me your .csproj file, reproduce the issue and collect the full log bundle so we could take a closer look at the case? 

Thank you in advance and have a great day!

0

I tried tweaking the MSBuild version a couple times but still it did not work.  I reproduced the issue and have collected the logs. There isn't a way to attach to this thread so i submitted a request https://rider-support.jetbrains.com/hc/en-us/requests/6019325. You can find the csproj file and logs there. Thank you Anna Morozyuk 

0

Hello Aurrutia ,

Thank you for your reply. I have checked the logs provided and can state that you have faced a recent bug with ID: 

RIDER-104817 Rider 2023.3.x - Cannot run/debug Xamarin.Mac macOS project

It is going to be fixed in the bugfix 2023.3.4. At the moment, there is no workaround available for this issue. 

Thank you for understanding. Let me know if any further questions remain. 

 

0

Anna Morozyuk Thank you.  When is 2023.3.4 expected to be released?

0

Aurrutia , the bugfix 2023.3.4 is going to be released by the end of next week.

0

Please sign in to leave a comment.