Can't debug new empty project in net 9 using VS code in Mac
Hi,
I open new empty net 9 in maui in MAC and can't run it after build.
What to do ?
I got this error:
.NET MAUI
-
Dani_S • 3,956 Reputation points
2025-01-24T11:03:09.4866667+00:00 Your quick answer will be appreciated.
-
Bruce (SqlWork.com) • 69,976 Reputation points
2025-01-24T17:14:42.6466667+00:00 how did you create the launch file? the default is no launch file.
-
Dani_S • 3,956 Reputation points
2025-01-24T17:28:00.23+00:00 I create it since I can't run the app.
after your remark I clean the launch file and still run the app.
I got :
See the right Botton corner:
'/Users/sasasoftware/Desktop/8b82398c-4c31-4ec5-b53f-2b4a2e5c5ba3_archive-net8/MauiApp1/MauiApp1.csproj' does not support debugging. No launchable target found.
-
Dani_S • 3,956 Reputation points
2025-01-24T17:30:57.04+00:00 I try run and run without debugging without success.
-
Dani_S • 3,956 Reputation points
2025-01-24T17:35:29.26+00:00 I create another maui app and still can not run it.
-
Dani_S • 3,956 Reputation points
2025-01-24T17:40:22.9366667+00:00 I choose .NetMaui and not respond.
-
Dani_S • 3,956 Reputation points
2025-01-24T17:55:58.8533333+00:00 create another maui app is build, I target only net9.0-maccatalyst but is not running.
-
Dani_S • 3,956 Reputation points
2025-01-24T18:35:23.0766667+00:00 How i set the debbuger?in status bar i have no {}
-
Bruce (SqlWork.com) • 69,976 Reputation points
2025-01-24T19:14:02.95+00:00 You need to select a Maui source file so debugger knows it’s a Maui app. It’s fussy about the selected file.
note: remember vs code is not an ide that understands project types. It fire tools based on file extension. You need visual studio (windows) to have a full IDE or look at jetbrains rider for a Mac IDE.
-
Dani_S • 3,956 Reputation points
2025-01-24T19:22:23.9233333+00:00 When i select cs code i see {} but is not running. In cli the new maui project is running.
-
Bruce (SqlWork.com) • 69,976 Reputation points
2025-01-24T20:17:14.64+00:00 pick a .xmal file. then you can pick the target platform
-
Dani_S • 3,956 Reputation points
2025-01-24T20:21:43.47+00:00 Is not show me the target platform
-
Dani_S • 3,956 Reputation points
2025-01-24T20:23:43.3133333+00:00 When selecting .xaml file do not see the {} to select the target platform.
-
Dani_S • 3,956 Reputation points
2025-01-24T20:30:16.3433333+00:00 step 7 + 8 not available in my new maui project.
What to do ?
-
Dani_S • 3,956 Reputation points
2025-01-24T20:32:59.42+00:00 @Bruce (SqlWork.com)
Can you please answer ?
-
Dani_S • 3,956 Reputation points
2025-01-24T20:45:52.19+00:00 When I build the app I got :
dotnet build /Users/sasasoftware/Desktop/Test6/Test6.sln /target:MauiApp1:rebuild /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary /p:Configuration=Debug /p:Platform="Any CPU"
-
Dani_S • 3,956 Reputation points
2025-01-24T21:50:46.7266667+00:00 Does i need to install command line tools of xcode
-
Dani_S • 3,956 Reputation points
2025-01-27T04:11:05.3333333+00:00 Your quick answer will be apprecisted.
-
Dani_S • 3,956 Reputation points
2025-01-27T06:34:26.8566667+00:00 still can't debug new empty project in net 9 using VS code in Mac
-
Dani_S • 3,956 Reputation points
2025-01-27T06:35:31.69+00:00 your quick answer will be appreciated.
-
Dani_S • 3,956 Reputation points
2025-01-27T07:57:14.19+00:00 @Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.)
Your quick answer will be appreciated.
Sign in to comment