❔ Run MaUI .NET 6 Mac Catalyst from Rider
Hello,
I created a MaUI app on Visual Studio for mac and would like to switch to Rider (RD-232.10203.29).
My goal is to execute the app using the Mac Catalyst target, however, I can't make it running on Rider.
It's working like a charm on Visual Studio (see configuration attached) when the debug configuration is used, but get the following error on the default Rider's Mac Catalyst configuration (see attachment) :
Yes, it looks like its trying to run on an iOS emulator. But why ?
Did a few things to try and fix the issue :
- Removing
net6.0-ios;
from the .csproj TargetFrameworks property. It worked, but not a big fan of that solution. I might need to run it on iOS
- Modifying the ".NET Launch Settings Profile" configuration (again, see configuration attached) but in vain, as it forces user to select a launch profile (see attachments in the next message). Here is my project's launchSettings.json
:
I guess having a "Windows Machine" profile there does not apply in my case ?
- Running the project thanks to the following command : dotnet run --framework net6.0-maccatalyst
. It's working, but not handy at all while developing.
- Trying to see what's under the Visual Studio configuration's hood, but could not find anything.
Does anybody experienced the same issue or could be of any help ?
Thanks a lot in advance ! ❤️2 Replies