![]() |
|
Blazor WebAssembly 3.2.0 Preview 4 release now available - Printable Version +- Sick Gaming (https://sickgaming.net) +-- Forum: Programming (https://sickgaming.net/forum-76.html) +--- Forum: C#, Visual Basic & .NET (https://sickgaming.net/forum-79.html) +--- Thread: Blazor WebAssembly 3.2.0 Preview 4 release now available (/thread-94601.html) |
Blazor WebAssembly 3.2.0 Preview 4 release now available - xSicKxBot - 04-17-2020 Blazor WebAssembly 3.2.0 Preview 4 release now available Daniel April 16th, 2020 A new preview update of Blazor WebAssembly is now available! Here’s what’s new in this release:
Get started To get started with Blazor WebAssembly 3.2.0 Preview 4 install the latest .NET Core 3.1 SDK. Quote:NOTE: Version 3.1.201 or later of the .NET Core SDK is required to use this Blazor WebAssembly release! Make sure you have the correct .NET Core SDK version by running Once you have the appropriate .NET Core SDK installed, run the following command to install the updated Blazor WebAssembly template: Code: dotnet new -i Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-preview4.20210.8If you’re on Windows using Visual Studio, we recommend installing the latest preview of Visual Studio 2019 16.6. For this preview you should still install the template from the command-line as described above to ensure that the Blazor WebAssembly template shows up correctly in Visual Studio and on the command-line. That’s it! You can find additional docs and samples on https://blazor.net. Upgrade an existing project To upgrade an existing Blazor WebAssembly app from 3.2.0 Preview 3 to 3.2.0 Preview 4:
You’re all set! Access host environment during startup The Code: WebAssemblyHostBuilderCode: IWebAssemblyHostEnvironmentCode: HostEnvironmentCode: blazor-environmentNew convenience extension methods on Code: IWebAssemblyHostEnvironmentCode: IsProduction()Code: IsDevelopment()Code: IsStaging()Code: BaseAddressCode: IWebAssemblyHostEnvironmentCode: NavigationManagerLogging improvements The Code: WebAssemblyHostBuilderCode: LoggingCode: ILoggingBuilderCode: ILoggingBuilderCode: Microsoft.Extensions.LoggingBrotli precompression When you publish a Blazor WebAssembly app, the published and linked output is now precompressed using Brotli at the highest level to further reduce the app size and remove the need for runtime compression. ASP.NET Core hosted apps seamlessly take advantage of these precompressed files. For standalone apps, you can configure the host server to redirect requests to the precompressed files. Using the precompressed files, a published Blazor WebAssembly is now 1.8MB, down from 2MB in the previous preview. A minimal app without Bootstrap CSS reduces to 1.6MB. Load assemblies and runtime in parallel Blazor WebAssembly apps now load the assemblies and runtime in parallel saving some precious milliseconds off the app load time. Simplify .NET IL linker config for apps You can optionally provide a .NET IL linker config file for a Blazor WebAssembly app to customize the behavior of the linker. Previously, specifying a linker config file for your app would override the customizations built into Blazor that are necessary for apps to function property. App specific linker configuration is now treated as additive to the linker configuration provided by Blazor. Localization support Blazor WebAssembly apps now support localization using .NET resource files (.resx) and satellite assemblies. Blazor WebAssembly apps set the current culture using the user’s language preference. The appropriate satellite assemblies are then loaded from the server. Components can then be localized using the ASP.NET Core localization APIs, like Code: IStringLocalizer<TResource>API docs in IntelliSense The API docs for the various Blazor WebAssembly APIs are now available through IntelliSense: Known issues Debugging limitations Thank you everyone who has been trying out the new Blazor WebAssembly debugging support and sending us your feedback! We’ve made some progress in this release, but there are still a number of limitations with the current debugging experience in Visual Studio and Visual Studio Code. The following debugging features are still not yet fully implemented:
We expect to continue to improve the debugging experience in future releases. Help improve the Blazor docs! We’ve received a some feedback from the in-product Blazor survey that the Blazor docs could use some improvement. Thank you for this feedback! We know that docs are a critical part of any software development framework, and we are committed to making the Blazor docs as helpful as we can. We need your help to understand how to best improve the Blazor docs! If you’d like to help make the Blazor docs better, please do the following:
Feedback We hope you enjoy the new features in this preview release of Blazor WebAssembly! Please let us know what you think by filing issues on GitHub. Thanks for trying out Blazor! |