Blazor 0.9.0 experimental release now available
Blazor 0.9.0 is now available! This release updates Blazor with the Razor Components improvements in .NET Core 3.0 Preview 3.
New Razor Component improvements now available to Blazor apps:
- Improved event handling
- Forms & validation
Note: The Blazor templates have not been updated to use the new .razor file extension for Razor Components in this release. This update will be done in a future release.
Get Blazor 0.9.0
To get started with Blazor 0.9.0 install the following:
- .NET Core 3.0 Preview 3 SDK (3.0.100-preview3-010431)
- Visual Studio 2019 (Preview 4 or later) with the ASP.NET and web development workload selected.
- The latest Blazor extension from the Visual Studio Marketplace.
The Blazor templates on the command-line:
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::0.9.0-preview3-19154-02
You can find getting started instructions, docs, and tutorials for Blazor at https://blazor.net.
Upgrade to Blazor 0.9.0
To upgrade your existing Blazor apps to Blazor 0.9.0 first make sure you’ve installed the prerequisites listed above.
To upgrade a Blazor 0.8.0 project to 0.9.0:
- Update the Blazor packages and .NET CLI tool references to 0.9.0-preview3-19154-02.
- Update the remaining Microsoft.AspNetCore.* packages to 3.0.0-preview3-19153-02.
- Remove any usage of
JSRuntime.Currentand instead use dependency injection to get the current
IJSRuntimeinstance and pass it through to where it is needed.
We hope you enjoy this latest preview release of Blazor. As with previous releases, your feedback is important to us. If you run into issues or have questions while trying out Blazor, file issues on GitHub. You can also chat with us and the Blazor community on Gitter if you get stuck or to share how Blazor is working for you. After you’ve tried out Blazor for a while please let us know what you think by taking our in-product survey. Click the survey link shown on the app home page when running one of the Blazor project templates:
Thanks for trying out Blazor!