- Update the
Blazor.BrowserExtension
NuGet package version to at leastv0.10.0
. - Update target framework to
net7.0
and all .Net packages to .Net 7. - Update the
manifest.json
file- Update
manifest_version
"manifest_version": 3,
- Update
background
"background": { "service_worker": "BackgroundWorker.js", "type": "module" },
- Update
browser_action
"action": { "default_popup": "popup.html" },
- Update
content_security_policy
"content_security_policy": { "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'" }
- Update
web_accessible_resources
"web_accessible_resources": [ { "resources": [ ... ], "matches": [ "<all_urls>" ] } ]
- Update
- Move all the codes from
Background.razor
toBackgroundWorker.js
- Create a new file
BackgroundWorker.js
inwwwroot
. - Remove
Background.razor
- Refer to this guide for migrating from background page to background service worker.
- Create a new file