Skip to content

Commit 5fe61af

Browse files
authored
Merge pull request #20961 from hmbulmob/docs/20944-update-azure-net8
Docs/20944 update azure net8
2 parents e3e0d96 + 68f8e3c commit 5fe61af

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

doc/articles/guides/azure-static-webapps.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
uid: Uno.Tutorials.AzureStaticWepApps
2+
uid: Uno.Tutorials.AzureStaticWebApps
33
---
44

55
# 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:
2222
dotnet new unoapp -o MyApp
2323
```
2424

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+
2627
- If in the `MyApp.Wasm\wwwroot`, you find a `web.config` file, delete it. This will enable brotli compression in Azure Static Web Apps.
2728
- Search for [Static Web Apps](https://portal.azure.com/#create/Microsoft.StaticApp) in the Azure Portal
2829
- Fill the required fields in the creation form:
@@ -35,24 +36,24 @@ Here is how to publish an app from GitHub, using Uno Platform:
3536

3637
![visual-studio-installer-web](../Assets/aswa-settings.png)
3738

38-
- 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.
3940
- In your repository’s newly added github workflow (in `.github/workflows`), add the following two steps, after the checkout step:
4041

4142
```yaml
4243
- name: Setup dotnet
43-
uses: actions/setup-dotnet@v1.7.2
44+
uses: actions/setup-dotnet@v4
4445
with:
45-
dotnet-version: '6.0.402'
46+
dotnet-version: '9.0.x'
4647
47-
- run: |
48+
- run:
4849
cd src/MyApp.Wasm
4950
dotnet build -c Release
5051
```
5152

5253
- In the Deploy step that was automatically added, change the `app_location` parameter to the following:
5354

5455
```yaml
55-
app_location: "src/MyApp.Wasm/bin/Debug/net5.0/dist"
56+
app_location: "src/MyApp.Wasm/bin/Debug/net9.0/dist"
5657
```
5758

5859
- Once changed, the application will be built and deployed on your Azure Static Web App instance.

doc/articles/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
- name: Overview
105105
href: xref:Uno.Tutorials.Intro
106106
- name: How to deploy a WebAssembly app on Azure Static Web Apps
107-
href: xref:Uno.Tutorials.AzureStaticWepApps
107+
href: xref:Uno.Tutorials.AzureStaticWebApps
108108
- name: How to use Windows Community Toolkit
109109
topicHref: xref:Uno.Development.CommunityToolkit
110110
items:

doc/articles/uno-publishing-webassembly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ Once done, you can head over to [publishing section](xref:uno.publishing.webasse
4848
Publishing your app can be done to different servers and cloud providers.
4949

5050
- [How to host a WebAssembly App](xref:Uno.Development.HostWebAssemblyApp)
51-
- [Publishing to Azure Static Apps](xref:Uno.Tutorials.AzureStaticWepApps)
51+
- [Publishing to Azure Static Apps](xref:Uno.Tutorials.AzureStaticWebApps)
5252
- [Server locally using dotnet-serve](https://github.com/natemcmaster/dotnet-serve)

0 commit comments

Comments
 (0)