Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with CodeGenerator: error specifying that 2.1.5 is required? #56

Open
SeanKilleen opened this issue Oct 2, 2018 · 0 comments
Open

Comments

@SeanKilleen
Copy link
Contributor

SeanKilleen commented Oct 2, 2018

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant