Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vitalbit opened this issue Sep 21, 2023 · 7 comments
Assignees
Labels
area-maui bug Something isn't working triaged The issue has been triaged vs-sync Add this label to synchronize the issue to AzDo vs-syncd Linked to AzDO
Milestone

Comments

@vitalbit
Copy link

vitalbit commented Sep 21, 2023

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

@microsoft-issue-labeler microsoft-issue-labeler bot added the area-project Project load, Solution Explorer label Sep 21, 2023
@tmeschter tmeschter added area-maui and removed area-project Project load, Solution Explorer labels Sep 21, 2023
@mauroa mauroa added bug Something isn't working triaged The issue has been triaged labels Sep 22, 2023
@mauroa mauroa added the vs-sync Add this label to synchronize the issue to AzDo label Sep 22, 2023
@RcBrgr
Copy link

RcBrgr commented Dec 5, 2023

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

@AllenD-MSFT AllenD-MSFT added the vs-syncd Linked to AzDO label Dec 15, 2023
@stepkillah
Copy link

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

@mauroa
Copy link
Member

mauroa commented Apr 12, 2024

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
Copy link

Same for me

@SharpMobileCode
Copy link

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.

@b12kab
Copy link

b12kab commented Feb 7, 2025

Non Blazor Maui repro project: https://github.com/b12kab/vc_ios_exception_exception

@emaf
Copy link
Member

emaf commented Feb 10, 2025

This is now fixed in the latest prerelease version of the .NET MAUI extension for VS Code (v1.8.5).

Just to clarify, .NET iOS extension projects are still not supported from the tooling, but now referencing those from a .NET iOS/MAUI app project, won't interfere with deploying/debugging the app.

@emaf emaf closed this as completed Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-maui bug Something isn't working triaged The issue has been triaged vs-sync Add this label to synchronize the issue to AzDo vs-syncd Linked to AzDO
Projects
None yet
Development

No branches or pull requests