Skip to content

Commit 5b8f2ea

Browse files
authored
Update PWA guidance (#31563)
1 parent 3d6ae5a commit 5b8f2ea

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

aspnetcore/blazor/progressive-web-app.md

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,49 @@ To obtain static assets, use **one** of the following approaches:
9090
dotnet new blazorwasm -o MyBlazorPwa --pwa -f net5.0
9191
```
9292

93+
:::moniker range=">= aspnetcore-8.0"
94+
9395
* Navigate to the ASP.NET Core GitHub repository at the following URL, which links to `main` branch reference source and assets. Select the release that you're working with from the **Switch branches or tags** dropdown list that applies to your app.
9496

95-
[Blazor WebAssembly project template `wwwroot` folder (dotnet/aspnetcore GitHub repository `main` branch)](https://github.com/dotnet/aspnetcore/tree/main/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Client/wwwroot)
97+
[Blazor WebAssembly project template `wwwroot` folder (dotnet/aspnetcore GitHub repository `main` branch)](https://github.com/dotnet/aspnetcore/tree/main/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot)
9698

9799
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
98100

99-
From the source `wwwroot` folder either in the app that you created or from the reference assets in the `dotnet/aspnetcore` GitHub repository, copy the following files into the app's `wwwroot` folder:
101+
From the source `wwwroot` folder either in the app that you created or from the reference assets in the `dotnet/aspnetcore` GitHub repository, copy the following files into the app's `wwwroot` folder:
100102

101-
* `icon-512.png`
102-
* `manifest.json`
103-
* `service-worker.js`
104-
* `service-worker.published.js`
103+
* `icon-192.png`
104+
* `icon-512.png`
105+
* `manifest.webmanifest`
106+
* `service-worker.js`
107+
* `service-worker.published.js`
108+
109+
In the app's `wwwroot/index.html` file:
110+
111+
* Add `<link>` elements for the manifest and app icon:
112+
113+
```html
114+
<link href="manifest.webmanifest" rel="manifest" />
115+
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
116+
<link rel="apple-touch-icon" sizes="192x192" href="icon-192.png" />
117+
```
118+
119+
:::moniker-end
120+
121+
:::moniker range="< aspnetcore-8.0"
122+
123+
* Navigate to the ASP.NET Core GitHub repository at the following URL, which links to the `release/7.0` branch reference source and assets. If you're using a version of ASP.NET Core later than 7.0, change the document version selector to see the updated guidance for this section. Select the release that you're working with from the **Switch branches or tags** dropdown list that applies to your app.
124+
125+
[Blazor WebAssembly project template `wwwroot` folder (dotnet/aspnetcore GitHub repository `release/7.0` branch)](https://github.com/dotnet/aspnetcore/tree/release/7.0/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Client/wwwroot)
126+
127+
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
128+
129+
From the source `wwwroot` folder either in the app that you created or from the reference assets in the `dotnet/aspnetcore` GitHub repository, copy the following files into the app's `wwwroot` folder:
130+
131+
* `favicon.png`
132+
* `icon-512.png`
133+
* `manifest.json`
134+
* `service-worker.js`
135+
* `service-worker.published.js`
105136

106137
In the app's `wwwroot/index.html` file:
107138

@@ -112,6 +143,8 @@ In the app's `wwwroot/index.html` file:
112143
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
113144
```
114145

146+
:::moniker-end
147+
115148
* Add the following `<script>` tag inside the closing `</body>` tag immediately after the `blazor.webassembly.js` script tag:
116149

117150
```html

aspnetcore/blazor/security/webassembly/graph-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,5 +1033,5 @@ The examples in this article pertain to using the Graph SDK or a named `HttpClie
10331033
* [Overview of Microsoft Graph permissions](/graph/permissions-overview)
10341034
* [Microsoft Graph permissions reference](/graph/permissions-reference)
10351035
* [Enhance security with the principle of least privilege](/azure/active-directory/develop/secure-least-privileged-access)
1036-
* [Microsoft Security Best Practices: Securing privileged access](/security/compass/overview)
1036+
* [Microsoft Security Best Practices: Securing privileged access](/security/privileged-access-workstations/overview)
10371037
* [Azure privilege escalation articles on the Internet (Google search result)](https://www.google.com/search?q=%22Azure+Privilege+Escalation%22)

0 commit comments

Comments
 (0)