JaneySprings / DotNet.Meteor

A VSCode extension that can run and debug .NET apps (Xamarin, MAUI, Avalonia)
https://marketplace.visualstudio.com/items?itemName=nromanov.dotnet-meteor
MIT License
269 stars 10 forks source link

VSCode+MAUI on Mac trying to get set up #80

Closed jpmock closed 8 months ago

jpmock commented 8 months ago

I am trying to use this extension purely to get XAML Hot Reload working on the iOS Simulator, but cannot even get it to debug.

My Setup: VSCode+Mac+MAUI App Target: iOS Simulator Target Framework: .Net 8

I am able to debug my app successfully with the following launch.json

{ "name": "Launch App", "type": "maui", "request": "launch", "preLaunchTask": "maui: Build" }

If I use the suggested launch configuration for DotNet.Meteor:

{ "name": ".NET Meteor Debugger", "type": "dotnet-meteor.debugger", "request": "launch", "preLaunchTask": "dotnet-meteor: Build" }

When I select to debug the app this instantly results in the following:

"Supported framework not found. Make sure you have selected a correct device."

Screenshot 2024-02-26 at 10 13 39 AM

Any suggestions?

Thanks

jpmock commented 8 months ago

For anyone facing a similar issue, this was simply due to not selecting the right target device in the status bar. It seems the default configuration I have uses a different part of the status bar to set the device. Where it normally says device Mac OS, I never had to touch that. My target was on the right side where I would specify the iOS Simulator.

Now with Meteor, changing the Mac OS part to my iOS Simulator solved the issue and I can see XAML Hot Reload is working.

JaneySprings commented 8 months ago

Hi, @jpmock! I recommended that you use one of the .NET Meteor or MAUI VSCode extension, not both together!