Interested in a private company training? Request it here.
.NET 5 is the main implementation of .NET going forward.
With .NET 5 Microsoft introduced a new project model, with a lot of emphasis on NuGet packages. This new model can be used with any development environment, such as Visual Studio Code.
So how can I build .NET 5 applications on a Mac or Linux machine?
ASP.NET Core easily outperforms all other web hosting solutions. So how did they do that? Here we will look at the ASP.NET Core pipeline, and how to make it do your bidding.
Startup
classASP.NET Core allows you to pick and choose where to store your configuration. No more deploying web.config with production settings in source control! We will look at the idea behind this and of course how to choose your ideal configuration.
Proper logging is essential to find problems while developing and in production. .NET 5 brings a unified logging approach which you can use anywhere in .NET and also works with your preferred logging framework such as NLog.
The Open Web Interface for .NET brought a simple standard way for building web servers with .NET. ASP.NET Core built upon this standard and with it you can easily build your own custom extensions.
On the web the URL decides what the server will do. In ASP.NET Core you will find the End-point Routing Middleware. A solid understanding of this middleware is required to build applications with ASP.NET Core.
Every new version of MVC brings a couple of improvements making it easier for developers to build state-of-the-art web applications. Among other features we will look at taghelpers, which bring a similar concept like Angular directives to the server side.
So you have finished a working version of your application. How do you deploy this? What are the options? Since .NET is cross-platform, you can build everything on Windows, and then run on Linux. You could even deploy your application to a Docker container! We will also discuss various deployment options, such as assembly trimming.
With .NET 5 also comes a while new Entity Framework Core. A new implementation of EF, which can run cross-platform, on Windows, Mac and Linux.
Mapping in EF Core uses conventions, attributes, or Fluent API. You will see how to use these to model your database in EF Core and apply the changes with Code-first Migrations.
Add real-time web functionality to your application.
Building Single-Page Applications (SPA) is a very popular way of building applications on the web. Angular, VueJs, React and others can be used to build these, but they all require you to learn and use JavaScript and a whole new series of tools for developing these applications. But not any longer! Now you can use C# (and Visual Studio) and apply all those skills learned over the years to build SPAs with Blazor. Blazor makes building interactive client-side web applications efficient and fun that work on any modern browser.
ASP.NET Core in .NET 5 (also known as .NET Core) is a dramatic change to what ASP.NET used to be. MVC and Web API are not completely different but anything surrounding it is. Deploy your web app on linux, OSX or even a raspberry Pi. Edit and debug your code with Visual Studio, Visual Studio for Mac or Visual Studio Code. It's a brave new world of openess. No more web.config and no more System.Web. Has Microsoft gone mad? No, definitely not, this is the best thing to happen to ASP.NET since a long time. Join us in this training to upgrade your skills to master .NET 5 and ASP.NET Core. If you want to tackle this content with even more advanced topics, check out our Advanced Web Development training.
This course is meant for developers that have experience with ASP.NET MVC and/or Web API and want to get on board with the latest development in ASP.NET Core.