Maui-Hybrid debug on iOS device using VS Code on Mac
Does anyone know how to test a maui-blazor app in VS Code on an iOS device? I can run it in the simulator, but I want to try it on my device. I have done everything shown here: https://learn.microsoft.com/en-us/dotnet/maui/ios/device-provisioning/manual-provisioning?view=net-maui-8.0&tabs=vs but I can't find any instructions on how to do the step "Downloading Provisoning Profiles" as the instructions are for Visual Studio only. What is the "CLI" method when using VS Code?
Manual provisioning for .NET MAUI iOS apps - .NET MAUI
Learn how to use manual provisioning to create development certificates and profiles for .NET MAUI iOS apps.
5 Replies
I've never tried it, but there is a VS Code extension https://devblogs.microsoft.com/visualstudio/announcing-the-dotnet-maui-extension-for-visual-studio-code/
Maddy Montaquila
Visual Studio Blog
Announcing the .NET MAUI extension for Visual Studio Code - Visual ...
Last month, we released the first preview of C# Dev Kit, a lightweight, editor-first experience that augments your C# development in Visual Studio Code with a Solution Explorer, native Test Explorer, AI-powered code authoring, and more. Today, we’re excited to announce the first preview of the .NET MAUI extension,
maybe that has the functionality needed
I have that extension.
I really feel like I'm the only person out there trying to create C# apps on a Mac. lol.
I read up on that page, and the instructions are terrible. e.g.
Debug to any target The .NET MAUI extension makes it easy to debug and deploy your app to your different target devices (Android, iOS, macOS and Windows). Just pick your device through the “Language Status” popup by hovering over the curly braces { }, selecting “Debug Target”, then starting a debug session (F5).WHAT curly braces? Where's this "Language Status" popup? Ok, got it working. Turns out these curly braces are at the bottom right corner of VS Code, but ONLY when you have an .xml file open. I had to manually add a
CFBundleIdentifier
key to info.plist. Odd that Maui doesn't do that automatically, as it's right there in <ApplicationId>
in the .csproj file..oo, this is a good call out. If you'd like the to file a painpoint/issue you can to the public repo for the extension: https://github.com/microsoft/vscode-dotnettools/issues . I'd have to look, but there might also be documentation that you can file issues on if they're on learn.microsoft.com
GitHub
Issues · microsoft/vscode-dotnettools
This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code - Issues · microsoft/vscode-dotnettools
Thank you, Andrew. I may do that.