Open moljac opened 1 year ago
This isn't supported as yet. Thanks for trying it though as it has come up in discussion. The focus so far has been on the server side only not clients.
This isn't supported as yet.
Any timeframe? No commitement. Just asking.
Thanks for trying it though as it has come up in discussion.
.NET@MS? I was guilty as charged for asking question.
The focus so far has been on the server side only not clients.
I created issue in Maui repo to and will discuss what needs to be done on Maui side. Thanks for the feedback.
@DamianEdwards any ideas where this should go?
We have a sample of this working with WPF and WinForms apps and the MAUI team is investigating what this could look like for MAUI apps. Adding references to MAUI projects from the AppHost project should be unblocked in preview 3 so the focus likely needs to shift to exploring guidance for integrating Microsoft.Extensions.Hosting and friends into MAUI projects in an idiomatic fashion.
@jamesmontemagno
If there is a working sample at some point then yeah I would put in https://github.com/dotnet/aspire-samples/tree/main/samples
I think that we need to have guidance though for client app dev.
I believe there is work to do in .NET MAUI itself and most likely this ticket could be moved if that is the case?
Hi
I think from title should be clear what I am attempting to achieve.
Working on templates for MAUI repro samples and playing with Aspire. Being lazy bum (dev) I would like to use Aspire for service discovery for client apps (MAUI, console, desktop...).
Repro:
SampleAspireStarter.zip
CLI
Error I get is:
Seems like
MauiAppBuilder
should implementIDistributedApplicationBuilder
https://github.com/dotnet/aspire/blob/6464fea863ea9ba17712fb38301ec6558bb4810c/src/Aspire.Hosting/Extensions/ProjectResourceBuilderExtensions.cs#L24
MauiAppBuilder
https://github.com/dotnet/maui/blob/c5f3528e48055d3f75f98bf9037220132b56725e/src/Core/src/Hosting/MauiAppBuilder.cs
Am I on the right track?
Being able to add any client to Aspire would be really nice feature for not-only-web-distributed-app development.