Skip to content

Commit 2f4e378

Browse files
authored
Merge pull request #3092 from dotnet/main
Merge main into live
2 parents 48d950a + 299211c commit 2f4e378

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

docs/data-cloud/aspire-integration.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ The MAUI Service Defaults project contains shared configuration that your MAUI a
7272
dotnet new maui-aspire-servicedefaults -n YourApp.MauiServiceDefaults
7373
```
7474

75+
Add the project to the solution:
76+
77+
```dotnetcli
78+
dotnet sln add YourApp.MauiServiceDefaults/YourApp.MauiServiceDefaults.csproj
79+
```
80+
7581
This project includes:
7682

7783
- Service discovery configuration
@@ -93,13 +99,28 @@ The App Host project orchestrates all your application services, including your
9399
dotnet new aspire-apphost -n YourApp.AppHost
94100
```
95101

102+
Add the project to the solution:
103+
104+
```dotnetcli
105+
dotnet sln add YourApp.AppHost/YourApp.AppHost.csproj
106+
```
107+
96108
Add references to your MAUI app and any web service projects:
97109

98110
```dotnetcli
99111
dotnet add YourApp.AppHost.csproj reference YourMauiApp/YourMauiApp.csproj
100112
dotnet add YourApp.AppHost.csproj reference YourWebService/YourWebService.csproj
101113
```
102114

115+
Add a reference to the Aspire hosting package for .NET MAUI:
116+
117+
```dotnetcli
118+
dotnet add package Aspire.Hosting.Maui --version 13.0.0-preview.1.25560.3 --project .\YourApp.AppHost\YourApp.AppHost.csproj
119+
```
120+
121+
> [!NOTE]
122+
> For now you need to use a preview version of the Aspire.Hosting.Maui package.
123+
103124
### Configure the App Host
104125

105126
In your App Host project's `Program.cs`, register your MAUI app and web services:
@@ -207,7 +228,7 @@ public class WeatherApiClient
207228

208229
public record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary)
209230
{
210-
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
231+
public int TemperatureF => 32 + (int)(TemperatureC * 1.8);
211232
}
212233
```
213234

docs/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ conceptualContent:
263263
url: data-cloud/push-notifications.md
264264
itemType: tutorial
265265
- text: Integrate a .NET MAUI app into an Aspire orchestration
266-
url: /data-cloud/aspire-integration.md
266+
url: data-cloud/aspire-integration.md
267267
itemType: concept
268268
- text: Consume a REST-based web service
269269
url: data-cloud/rest.md

docs/user-interface/controls/hybridwebview.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,4 +1024,19 @@ Common patterns include:
10241024
- Returning local files or in-memory content for offline or testing scenarios.
10251025
- Redirecting to a different URI by returning a 3xx status code with an appropriate `Location` header.
10261026

1027+
### Implementation Restrictions
1028+
1029+
* **Android**
1030+
* Android does not directly allow "intercept-and-continue" for requests. The implementation is to rather notify you that a request is about to happen and you can either replace the whole request or do nothing and let the webview do it.
1031+
* Android does not support custom schemes.
1032+
* **iOS/Mac Catalyst**
1033+
* iOS and Mac Catalyst do not allow interception of `http` and `https` requests.
1034+
1035+
| Platform | Intercept HTTPS | Intercept Custom Schemes | Request Modification |
1036+
|---------------|------------------|---------------------------|----------------------|
1037+
| Android ||||
1038+
| iOS ||||
1039+
| Mac Catalyst ||||
1040+
| Windows ||||
1041+
10271042
::: moniker-end

0 commit comments

Comments
 (0)