.NET Blog
Free. Cross-platform. Open source. A developer platform for building all your apps.
Latest posts
Making CPU configuration better for GC on machines with > 64 CPUs
If you are running Windows on a machine with > 64 CPUs, you’ll need to use this feature called the CPU groups for your process to be able to use more than 64 CPUs. At some point in the far distant past, people thought having more than 64 processors on a machine was inconceivable so they used a 64-bit number for the processor mask. And when 64-proc machines became available, Windows invented this CPU group concept for such machines which says processors are now belong to different CPU groups where each group has no more than 64 procs. Eg, on a machine with 96 procs you will see 2 groups with 48 procs each. When a ...
.NET Framework April 2, 2019 Cumulative Update for Windows 10 version 1809 and Windows Server 2019
Today, we released the March 2019 Update for Windows 10 version 1809 and Windows Server 2019. Quality and Reliability This release contains the following quality and reliability improvements. CLR Getting the Update The Update is available via Windows Server Update Services and Microsoft Update Catalog. Microsoft Update Catalog You can get the update via the Microsoft Update Catalog. The following table is for Windows 10 version 1809 and Windows Server 2019. Previous Monthly Rollups The last few .NET Framework Monthly updates are listed below for your convenience: ...
Visual Studio 2019 .NET productivity
Your friendly neighborhood .NET productivity team (aka. Roslyn) focuses a lot on improving the .NET coding experience. Sometimes it’s the little refactorings and code fixes that really improve your workflow. You may have seen many improvements in the previews, but for all of you who were eagerly awaiting the GA release here’s a few features you may enjoy! Tooling improvements I’m most excited about the new Roslyn classification colors. Visual Studio Code colors received high praise so we incorporated similar color schemes into Visual Studio. Your code editor is now just a little more colorful. Key words, user m...
Handling a new era in the Japanese calendar in .NET
Typically, calendar eras represent long time periods. In the Gregorian calendar, for example, the current era spans (as of this year) 2,019 years. In the Japanese calendar, however, a new era begins with the reign of a new emperor. On April 30, 2019, Emperor Akihito is expected to abdicate, which will bring to an end the Heisei era. On the following day, when his successor becomes emperor, the Reiwa era, a new era in the Japanese calendar, will begin. It is the first transition from one era to another in the history of .NET, and the first change of eras in the Japanese calendar since Emperor Akihito's accession i...
Announcing F# 4.6
We're excited to announce general availability of F# 4.6 and the F# tools for Visual Studio 2019! In this post, I'll show you how to get started, explain the F# 4.6 feature set, give you an update on the F# tools for Visual Studio, and talk about what we're doing next. F# 4.6 was developed entirely via an open RFC (requests for comments) process. The F# community has offered very detailed feedback in discussions for this version of the language. You can view all RFCs that correspond with this release here: Get started First, install either: If you are a Visual Studio user, you wi...
.NET Core Workers as Windows Services
In .NET Core 3.0 we are introducing a new type of application template called Worker Service. This template is intended to give you a starting point for writing long running services in .NET Core. In this walkthrough we will create a worker and run it as a Windows Service. Create a worker Preview Note: In our preview releases the worker template is in the same menu as the Web templates. This will change in a future release. We intend to place the Worker Service template directly inside the create new project wizard. Create a Worker in Visual Studio Create a Worker on the command line Run Run as a W...
Migrating Delegate.BeginInvoke Calls for .NET Core
I recently worked with a couple customers migrating applications to .NET Core that had to make code changes to workaround and methods on delegates not being supported on .NET Core. In this post, we'll look at why these APIs aren't implemented for .NET Core, why their usage isn't caught by the .NET API Portability Analyzer, and how to fix code using them to work with .NET Core. About the APIs As explained in .NET documentation, the method on delegate types allows them to be invoked asynchronously. immediately (without waiting for the delegate to complete) returns an object that can be used later (by calling...
Re-reading ASP.Net Core request bodies with EnableBuffering()
This post describes the EnableBuffering() extension method which enable re-reading of ASP.NET Core request body.
.NET Framework March 2019 Update
Today, we released the March 2019 Update. Quality and Reliability This release contains the following quality and reliability improvements. CLR Getting the Update The Update is available via Windows Server Update Services and Microsoft Update Catalog. Microsoft Update Catalog You can get the update via the Microsoft Update Catalog. For Windows 10 update 1607, Windows 10 update 1703, Windows 10 update 1709 and Windows update 1803, the .NET Framework updates are part of the Windows 10 Monthly Rollup. The following table is for Windows 10 and Windows Server 2016+ versions. The fo...