Reading the Source Code of Microsoft.NET.Sdk, Writing the Creative Extension of Compiling
Project node starts to support the
Sdk attribute since MSBuild release the 15.0 version which is embedded in Visual Studio 2017. For the
Sdk attribute, the C# project file whose file extension is csproj becomes much more powerful and extensible.
We’ll try to read the source code of
Microsoft.NET.Sdk which is the default Sdk value of C#.NET project and try to write some creative extension of compiling.
App will crash when using the when keyword in a catch expression
We know that we can add a
when keyword after a
catch filter. But if there is another exception happened in the
when expression, the app will totally crash.
This happens in .NET Framework 4.8 but in .NET Core 3.0, it works correctly as the document says.
Maybe this is a bug in the .NET Framework 4.8 CLR.