IdentityServer / IdentityServer4.Templates

dotnet new templates for IdentityServer4
Apache License 2.0
695 stars 229 forks source link

dotnet new still installing asp.net core 2.1 templates #67

Closed lenardchristopher closed 5 years ago

lenardchristopher commented 5 years ago

Expected Generating a IdentityServer4 project using IdentityServer4.Templates with dotnet new should return ASP.NET Core 3.0 projects.

Actual IdentityServer4.Templates and dotnet new command generates ASP.NET Core 2.1 templates.

Repo Steps

  1. Download and install .NET Core 3.0 SDK
  2. Install Identity Server 4 Templates using dotnet new -i IdentityServer4.Templates
  3. Generate a new project using the templates (Example: dotnet new is4inmem)
  4. Inspect the new project's csproj file and see it is targeting ASP.NET Core 2.1 and Startup.cs is still configured for 2.1.
leastprivilege commented 5 years ago

Works for me.

Maybe do a

dotnet new --debug:reinit

and make sure you install the 3.0 version of the templates

dotnet new --install IdentityServer4.Templates::3.0.0

bchewy commented 5 years ago

dotnet new --debug:reinit worked for me on .net 2.2. Just had to let others know!