.NET 11 speeds up the dotnet CLI with a Native AOT host and an MSBuild server enabled by default. It also adds solution filter support, more file-based app features and run-level limits for dotnet test on MTP — open the original to see what changes in your daily build, test and migration commands.
Key points
- The dotnet host is now compiled with Native AOT and on by default, so dotnet --version runs without the managed runtime.
- Tool and external commands like dotnet ef and dotnet dev-certs skip the 600-700 ms managed CLI startup.
- Both optimizations can be disabled with DOTNET_CLI_ENABLEAOT=false and DOTNET_CLI_USE_MSBUILD_SERVER=false.
- dotnet new slnf and dotnet sln now create and edit .slnf filters, and the newer .slnx format works too.
- File-based apps accept #:include for DLLs, and #:package and #:property lines now allow quoted values.
- dotnet test --timeout 90s and --maximum-failed-tests 5 limit the whole run and return exit codes 3 and 13.
- dotnet nuget add source --min-publish-age-hours makes version resolution skip too-recent packages.
Real-world use
- A CI job in a large monorepo that builds only the projects it needs via a generated solution filter
- A team running dotnet ef migrations add dozens of times a day and wanting shorter CLI startup
- A suite failing fast with --maximum-failed-tests instead of waiting for hundreds of failures
- Adding a minimum publish age so new NuGet releases get time to be scanned by the ecosystem
This summary was generated by the agent from the original post on NimblePros Blog. The full text and all rights belong to its author and publisher. Go to original