Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
C# Minimal API in .NET 6 with Visual Studio 2022
Rating: 4.1 out of 5(34 ratings)
201 students

C# Minimal API in .NET 6 with Visual Studio 2022

Create C# newest feature "Minimal API", write C# API's as never before. Create project from 0 to end in newest .NET 6
Created byLuka Devic
Last updated 11/2021
English

What you'll learn

  • Learn latest C# 10 and .NET 6 features.
  • Create project in newest Visual Studio 2022.
  • Build C# Minimal API from 0 to end.
  • Compare minimal API project with standard API project.

Course content

4 sections49 lectures1h 55m total length
  • November 2021 great news0:21
  • Presentation: Minimal API0:22
  • Presentation: Project plan0:31
  • Presentation: Tools which we will use0:56
  • Text: Websites for downloading tool which we will use in project0:09
  • Demo: GitHub repository1:48
  • Text: My GitHub account page for repositories0:02

    My GitHub account page which is used in previous video and used for cloning old standard controllers .NET 5 API project

  • Demo: Download repository0:40
  • Demo: Create new .NET 6 project2:15
  • Demo: New project files overview5:06
  • Demo: Project Board2:33
  • Demo: GetCars minimal endpoint5:49
  • Demo: Remaining CRUD minimal endpoints8:10
  • Demo: Add comments1:50
  • Demo: Task 1.1 completed0:11
  • Demo: Exercise 11:08
  • Text: Exercise 10:02
  • Demo: Exercise 1 end4:08
  • Text: Exercise 2 solution files0:03
  • Demo: Regions3:07

Requirements

  • 1 year of programing in C#
  • Half year of programing in ASP NET

Description

November 2021 represents significant date for every developer interested in C# and its related tools and technologies.

On November 2021 Microsoft lunched new C# version, version 10, new .NET CORE version, Version 6, new Visual Studio, version 2022, and many more.

One of the greatest changes is lunch of minimal API's! A new minimal way of writing C# API's.


This changes everything, from the way of thinking about C# API to its new minimal look and feel.


Lets together get skilled in all of the C# new technologies in a projects in which we will create new .NET 6 minimal API from zero to the end.


We will start with an preexisting regular REST .NET 5 C# web API which we will use for features guidance's and beside it create new .NET 6 minimal API project which we will compare to the old ways of writing API's.


I'm Luke, Senior Full Stack Software Engineer and lets together get skills and knowledge for building C# newest minimal API's.


C#


C# 10 adds the following features and enhancements to the C# language:

  • Record structs

  • Improvements of structure types

  • Interpolated string handlers

  • global using directives

  • File-scoped namespace declaration

  • Extended property patterns

  • Improvements on lambda expressions

  • Allow const interpolated strings

  • Record types can seal ToString()

  • Improved definite assignment

  • Allow both assignment and declaration in the same deconstruction

  • Allow AsyncMethodBuilder attribute on methods

  • CallerArgumentExpression attribute

  • Enhanced #line pragma


.NET 6


.NET 6 delivers the final parts of the .NET unification plan that started with .NET 5. .NET 6 unifies the SDK, base libraries, and runtime across mobile, desktop, IoT, and cloud apps. In addition to this unification, the .NET 6 ecosystem offers:

  • Simplified development: Getting started is easy. New language features in C# 10 reduce the amount of code you need to write. And investments in the web stack and minimal APIs make it easy to quickly write smaller, faster microservices.

  • Better performance: .NET 6 is the fastest full stack web framework, which lowers compute costs if you're running in the cloud.

  • Ultimate productivity: .NET 6 and Visual Studio 2022 provide hot reload, new git tooling, intelligent code editing, robust diagnostics and testing tools, and better team collaboration.

.NET 6 will be supported for three years as a long-term support (LTS) release.

Preview features are disabled by default. They are also not supported for use in production and may be removed in a future version. The new RequiresPreviewFeaturesAttribute is used to annotate preview APIs, and a corresponding analyzer alerts you if you're using these preview APIs.

.NET 6 is supported by Visual Studio 2022 and Visual Studio 2022 for Mac (and later versions).


Visual studio 2022


With Visual Studio 2022, you'll always get the best-in-class tools and services available for any developer, any app, and any platform. Whether you're using Visual Studio for the first time or you've been using it for years, there's a lot to like in our newest version!

Who this course is for:

  • For beginners, medior and senior technical professionals who are interested in latest C# features.