Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 1.09 KB

lab-exercise-03.md

File metadata and controls

20 lines (12 loc) · 1.09 KB

3. Add and use a NuGet package

NuGet packages included in your project are specified in your csproj file. Instead of manually editing the list of packages and versions, you can use the dotnet tool to make the changes for you.

Swashbuckle is a package that automatically produces documentation for your API. Let's install that and take a look at the documentation site it produces.

Exercise 3

Verify

Open WebAPI.csproj and look for the following PackageReference.

<PackageReference Include="Swashbuckle.AspNetCore" Version="3.0.0" />

Open https://localhost:5001/swagger/ in a web browser to see documentation for your API.