microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
207 stars 7 forks source link

iOS Extension project deploys on iOS simulator instead of MAUI Hybrid Blazor project #548

Open vitalbit opened 9 months ago

vitalbit commented 9 months ago

Type: Bug

Describe the issue I can not find the way to run MAUI project when solution contains IOS Extension project (verified with Notification Content Extension and Notification Service Extension). When you try to start debug, the IOS Extension project is deployed on the simulator (meanwhile you can notice that "dotnet build" command runs with correct MAUI hybrid blazor project in arguments).

Steps to reproduce

  1. Create new MAUI Hybrid Blazor project in VS Code on MacBook with .NET MAUI extension.
  2. Add Notification content extension project (can be achieved with the help of this nuget package https://www.nuget.org/packages/VladislavAntonyuk.DotNetTemplates)
  3. Add Project reference in the MAUI csproj file to the extension project, as stated in README.md of extension project.
  4. Pick iOS Simulator and run MAUI build.

Project sample, which have such issue and covers first 3 steps: https://github.com/vitalbit/IOSNotificationExtensionSample

Expected behavior MAUI hybrid blazor project is deployed on iOS simulator, not iOS Extension project.

Extension version: 0.3.22 VS Code version: Code 1.82.2 (Universal) (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:59:47.790Z) OS version: Darwin x64 22.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz (4 x 2300)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 3, 3| |Memory (System)|8.00GB (0.02GB free)| |Process Argv|--crash-reporter-id 4d859453-d431-455a-9d69-6fafbd18d8c7| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263cf:30792227 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 3biah626:30602489 89544117:30613380 a9j8j154:30646983 showlangstatbar:30737416 0bi6i642:30841073 03d35959:30757346 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30805730 pythonnoceb:30805159 copilotsettingc:30839828 dsvsc013:30795093 dsvsc014:30804076 diffeditorv2:30821572 dsvsc015:30829745 ```

VS bug #1890216

RcBrgr commented 7 months ago

Same problem with plain dotnet Maui project with iOS App extension.

stepkillah commented 3 months ago

Any updates or known workarounds? still an issue, a partial workaround is to exclude extensions from the main project

mauroa commented 2 months ago

Just as an update after some investigation, iOS Extensions for VS Code is not fully supported, so we need to convert this into a feature request. We'll work on it and provide updates when the support is ready. Thanks for your help and patience.

evgenyvalavin commented 2 months ago

Same for me

SharpMobileCode commented 3 weeks ago

Same issue here. We have a single project .NET MAUI app targeting iOS & Android, with an App Extension project for notifications. Every time we start new debug session, it deploys and installs the Notification Extension project instead of the actual iOS project. We're evaluating the VSCode extension now that it is GA and is a show stopper for us. Don't think this is a feature request, it's a bug as the VSCode extension is the official replacement for VS for Mac, and this worked fine on VS for Mac.