/aspnetcore-generator-api

Sample ASP.NET Core API that generates random data, has swagger UI too

Primary LanguageC#MIT LicenseMIT

Access this repository: http://bit.ly/aspnetcoredocker

Branch to course mapping

This repository contains source code for two courses:

Errata / Updates

All branches in this repository have been updated for 2.0.0 RTM. Issue #3

If you want to use a future release:

  • Update global.json to appropriate sdk version.
  • Update csproj files based on dotnet new webapi and dotnet new xunit templates.
  • Address changes to app code.

If a future release comes out and you don't want to update, change Dockerfile tags to explicitly reference 2.0.0, i.e.

  • microsoft/dotnet:2.0.0-sdk instead of microsoft/dotnet:2-sdk
  • microsoft/aspnetcore:2.0.0 instead of microsoft/aspnetcore:2
  • microsoft/aspnetcore-build:2.0.0 instead of microsoft/aspnetcore-build:2

If you want to use a pre-release version use the -nightly repos, i.e.

  • microsoft/dotnet-nightly instead of microsoft/dotnet

Announcements related to this course, since publishing:

  • During the previews of .NET Core 2.0, Debian Stretch was released. Both Stretch (v9) and Jessie (v8) images are available. As of .NET Core 2.0 RTM Stretch is now used in the multi-architecture tags. And, Stretch is now the default for the lifespan of .NET Core 2.x releases. dotnet/announcements#16
  • microsoft/dotnet & microsoft/dotnet-nightly image tags are now visually grouped by OS & CPU architecture dotnet/announcements#27
  • dotnet restore is now an implicit command, i.e. when you run dotnet build it will perform a restore if needed. That said, dotnet restore is still worthwhile to explicitly control when package restore occurs, for example to optimize the speed of building images as discussed in the courses. dotnet/announcements#23