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: aspnetcore/blazor/progressive-web-app.md
+39-6Lines changed: 39 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,18 +90,49 @@ To obtain static assets, use **one** of the following approaches:
90
90
dotnet new blazorwasm -o MyBlazorPwa --pwa -f net5.0
91
91
```
92
92
93
+
:::moniker range=">= aspnetcore-8.0"
94
+
93
95
* 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.
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:
100
102
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:
* 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.
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`
105
136
106
137
In the app's `wwwroot/index.html` file:
107
138
@@ -112,6 +143,8 @@ In the app's `wwwroot/index.html` file:
0 commit comments