Where is my Program Main method? (

Опубликовано: 13 Октябрь 2024
на канале: Asp.Net Monsters
10,845
103

The new project templates in .NET 6 make use of Top Level statements, a feature that was introduced in C#9. The code generated by these new templates looks quite a bit different when compared to .NET 5 and you might be asking yourself "Where is my Program Main method!??". Let's dig in and find out!

Top-Level Statements - https://docs.microsoft.com/en-us/dotn...

.NET 6 Project Template Changes - https://docs.microsoft.com/en-us/dotn...

ILSpy VS Code Extension - https://marketplace.visualstudio.com/...