You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/articles/guides/azure-static-webapps.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
uid: Uno.Tutorials.AzureStaticWepApps
2
+
uid: Uno.Tutorials.AzureStaticWebApps
3
3
---
4
4
5
5
# Hosting Uno Platform WebAssembly apps on Azure Static Web Apps
@@ -22,7 +22,8 @@ Here is how to publish an app from GitHub, using Uno Platform:
22
22
dotnet new unoapp -o MyApp
23
23
```
24
24
25
-
- If the `<TargetFramework>` value in the `MyApp.Wasm.csproj` is not `net5.0`, [follow the upgrading steps provided here](../../articles/migrating-from-previous-releases.md#migrating-webassembly-projects-to-net-5).
25
+
- If the `<TargetFramework>` value in the `MyApp.Wasm.csproj` is not `net9.0`, [make sure to upgrade to latest Uno release by following these steps](xref:Uno.Development.MigratingFromPreviousReleases).
26
+
26
27
- If in the `MyApp.Wasm\wwwroot`, you find a `web.config` file, delete it. This will enable brotli compression in Azure Static Web Apps.
27
28
- Search for[Static Web Apps](https://portal.azure.com/#create/Microsoft.StaticApp)in the Azure Portal
28
29
- Fill the required fields in the creation form:
@@ -35,24 +36,24 @@ Here is how to publish an app from GitHub, using Uno Platform:
- The click on **Review+Create** button. Azure will automatically create a new **GitHub Actions Workflow**in your repository. The workflow will automatically be started and will fail for this first run, as some parameters need to be adjusted.
39
+
- Then click on **Review+Create** button. Azure will automatically create a new **GitHub Actions Workflow**in your repository. The workflow will automatically be started and will fail for this first run, as some parameters need to be adjusted.
39
40
- In your repository’s newly added github workflow (in `.github/workflows`), add the following two steps, after the checkout step:
40
41
41
42
```yaml
42
43
- name: Setup dotnet
43
-
uses: actions/setup-dotnet@v1.7.2
44
+
uses: actions/setup-dotnet@v4
44
45
with:
45
-
dotnet-version: '6.0.402'
46
+
dotnet-version: '9.0.x'
46
47
47
-
- run: |
48
+
- run:
48
49
cd src/MyApp.Wasm
49
50
dotnet build -c Release
50
51
```
51
52
52
53
- In the Deploy step that was automatically added, change the `app_location` parameter to the following:
0 commit comments