Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 637 Bytes

lab02.md

File metadata and controls

21 lines (13 loc) · 637 Bytes

Lab 2

Dependency Injection

  1. Create a .NET Core console application
  2. Reference the NuGet package Microsoft.Extensions.DependencyInjection
  3. Create a service, a controller, and inject the service into the controller
  4. Use the DI container

ASP.NET Core

  1. Create an ASP.NET Core Web application using the empty template
  2. Add a static HTML file, and try to access this file from the browser

What needs to be done to return static files

  1. Create custom middleware and add this to the pipeline

ASP.NET Core MVC

Create an ASP.NET Core MVC Web project and experiment with models, views, controllers, and services