C
C#11mo ago
AndyB

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
lycian
lycian11mo ago
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,
lycian
lycian11mo ago
maybe that has the functionality needed
AndyB
AndyBOP11mo ago
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..
lycian
lycian11mo ago
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
AndyB
AndyBOP11mo ago
Thank you, Andrew. I may do that.
Want results from more Discord servers?
Add your server