ASP.NET CORE Building Web APIs

Опубликовано: 15 Октябрь 2024
на канале: Wise Flame
134
2

ASP.NET Core. ASP.NET Core Web API help pages using Routing to controller actions. Build web APIs with ASP.NET Core. Controller action return types. ASP.NET Core Extension for VS Code. asp.net core,asp.net core 2.0,asp.net core mvc,asp.net core 2.0 tutorial,asp.net core 2.0

ASP.NET Core provides many improvements over the ASP.NET MVC/Web API. Firstly, it is now one framework and not two. I really like it because it is convenient and there is less confusion. Secondly, we have logging and DI containers without any additional libraries, which saves me time and allows me to concentrate on writing better code instead of choosing and analyzing the best libraries.

.NET Core is a cross-platform development platform supporting Windows, macOS, and Linux, and can be used in device, cloud, and embedded/IoT scenarios. It is maintained by Microsoft and the .NET community on GitHub.

The special thing about .NET Core 2.0 is the implementation of .NET Standard 2.0. This makes it possible to use almost 70% of already existing NuGet packages, which is a big step forward and eases development of .NET applications because of reusability.

Download and install .NET Core SDK. For Windows and MacOS there are installers available.

Create an application with following command: dotnet new console -o ProjectName. Option -o specifies the output folder to be created which also becomes the project name. If -o is omitted then the project will be created in the current folder with the current folder’s name.

Run the newly created application with: dotnet run.