aspnetcore-app-workshop
aspnetcore-app-workshop copied to clipboard
Issue with CodeGenerator: error specifying that 2.1.5 is required?
Adding this here to surface it in case it can bubble its way up to the right spot; feel free to close if there's nowhere for this to go.
In the first section of the course, it references using the codegenerator to scaffold a controller:
dotnet aspnet-codegenerator controller -api -name SpeakersController -m Speaker -dc BackEnd.Models.ApplicationDbContext -outDir Controllers
However, no matter what framework I specify, when I run this command, I see:
The specified framework 'Microsoft.NETCore.App', version '2.1.5' was not found.
I don't yet have 2.1.5 but I expected this would be able to work on 2.1.x`.
dotnet --list-sdks:
- 2.0.3 [C:\Program Files\dotnet\sdk]
- 2.1.4 [C:\Program Files\dotnet\sdk]
- 2.1.202 [C:\Program Files\dotnet\sdk]
- 2.1.302 [C:\Program Files\dotnet\sdk]
dotnet --list-runtimes:
- Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
- Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
- Microsoft.NETCore.App 2.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
- Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
- Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
- Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]