Sunday, June 27, 2021

Microsoft Build 2021: My Tiny Little Summary

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.

WSL

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.

.NET

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:

  • C# 10

    • Syntactic Simplications
      • In-line comparison (Equals in {} in Writeline can be simplified to just ==)
    • Record structs
    • Improvements to lambdas and auto-properties
      • init for simple initialization
      • required option for init items
      • => for init, get and set
      • !! for check incoming variable
      • global using for all dependency accorss
      • namespace <name>;can be used instead of the oldnamespace <name> {}
  • 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
    • Web UI
      • CSS isolation for Pages & Views
      • Improved SPA support

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

Navigation



from Hacker News https://ift.tt/3gW1v0W

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.