Microsoft Build 2021: My Tiny Little Summary
source link: https://patrickwu.space/2021/06/03/build-2021/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Microsoft Build 2021: My Tiny Little Summary
--- date: Jun 03, 2021
tags: - C#- Microsoft Build- WSL- WSLg ---
TL; DR
Oh, look, a wild Microsoft Build appeared! The Microsoft Build this year was, you know, all virtual again. As a person who is more interested in .NET and WSL development, I find it disappointing that not much of Windows development is mentioned in the entire conference. It made me miss Build 2019. While I am still not recovered from my master’s study, my laptop died right during the Build conference; I can only provide a straightforward summary of this year’s Build. Well, I think let’s dive in.
To my disappointment, there is not much new in this build. This build generally recapped everything we have so far, such as WSLg and ``wsl --install`. The only new thing I noticed is Visual Studio’s ability to debug using the browser in WSL using WSLg.
The sessions about .NET is packed with information, although there is nearly 1-digit number of sessions about it. .NET Upgrade Assistant (Help upgrade .NET project to latest version) would be possibly a great tool for me to migrate my old projects to newer version, and .NET 6 with its Single stack (only one SDK, BCL, Toolchain for cross-platform) structure made it looks really promising. Here is a quick sum up from the session:
-
- Syntactic Simplications
- In-line comparison (Equals in
{}
in Writeline can be simplified to just==
)
- In-line comparison (Equals in
- Record structs
- record class/struct
- Improvements to lambdas and auto-properties
init
for simple initializationrequired
option forinit
items=>
forinit
,get
andset
!!
for check incoming variableglobal using
for all dependency accorssnamespace <name>;
can be used instead of the oldnamespace <name> {}
- Syntactic Simplications
-
Web API (minimal)
-
.NET MAUI
dotnet new maui
- Speacial Resources type (Maui*)
- Would be really great for some projects
-
Blazor
-
WebAssembly ahead-of-time compilation
-
Error boundaries
-
Razor component type inference & generic type constraints
-
Dynamic Components
-
Blazor state persistence during prendering
-
Fluent UI
-
ASP.NET Core
- Runtime
- HTTP/3
- HTTP logging middleware
- Shadow copying for IIS deployment
- OpenTelementary support
- API
- Minimal APIs
start.cs
is now optional- lambda support
- provide experience similar to NodeJS
- Async streaming
IAsyncDisposable
support- gRPC client retries & load balancing
- Minimal APIs
- Web UI
- CSS isolation for Pages & Views
- Improved SPA support
- Runtime
Other
- winget 1.0
- Visual Studio Hot Reload; this will save a lot of times for me
- Project Reunion 0.8
- Provides UWP-like interface
- MAUI+WinUI
- 1.0 will come with the notification feature
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK