From 42f3779ba9b4c706e7d2896675fd79ff545bb9c3 Mon Sep 17 00:00:00 2001 From: Joe DeCock Date: Fri, 11 Aug 2023 10:14:45 -0500 Subject: [PATCH 1/2] Use an explicit version number for nugets in quickstarts --- IdentityServer/v6/docs/content/quickstarts/0_overview.md | 2 +- .../v6/docs/content/quickstarts/1_client_credentials.md | 2 +- IdentityServer/v6/docs/content/quickstarts/4_ef.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IdentityServer/v6/docs/content/quickstarts/0_overview.md b/IdentityServer/v6/docs/content/quickstarts/0_overview.md index 7f4e7850..791c1e4b 100644 --- a/IdentityServer/v6/docs/content/quickstarts/0_overview.md +++ b/IdentityServer/v6/docs/content/quickstarts/0_overview.md @@ -20,7 +20,7 @@ Every quickstart has a reference solution - you can find the code in the [sample The first thing you should do is install our templates: ``` -dotnet new --install Duende.IdentityServer.Templates +dotnet new --install Duende.IdentityServer.Templates::6.3.1 ``` They will be used as a starting point for the various tutorials. diff --git a/IdentityServer/v6/docs/content/quickstarts/1_client_credentials.md b/IdentityServer/v6/docs/content/quickstarts/1_client_credentials.md index 40247795..c69d8345 100644 --- a/IdentityServer/v6/docs/content/quickstarts/1_client_credentials.md +++ b/IdentityServer/v6/docs/content/quickstarts/1_client_credentials.md @@ -28,7 +28,7 @@ the quickstarts. To install the templates open a console window and type the following command: ```console -dotnet new --install Duende.IdentityServer.Templates +dotnet new --install Duende.IdentityServer.Templates::6.3.1 ``` ## Create the Solution and IdentityServer Project diff --git a/IdentityServer/v6/docs/content/quickstarts/4_ef.md b/IdentityServer/v6/docs/content/quickstarts/4_ef.md index 0cf69be1..cf18e4e3 100644 --- a/IdentityServer/v6/docs/content/quickstarts/4_ef.md +++ b/IdentityServer/v6/docs/content/quickstarts/4_ef.md @@ -44,7 +44,7 @@ IdentityServer's Entity Framework integration is provided by the from the *src/IdentityServer* directory to install it: ```console -dotnet add package Duende.IdentityServer.EntityFramework +dotnet add package Duende.IdentityServer.EntityFramework --version 6.3.1 ``` ### Install Microsoft.EntityFrameworkCore.Sqlite From 984077fee305f78fb3cc2894ef0298902a6d2c55 Mon Sep 17 00:00:00 2001 From: Joe DeCock Date: Sun, 10 Sep 2023 12:58:57 -0500 Subject: [PATCH 2/2] Simplify version mismatch guidance --- IdentityServer/v6/docs/content/quickstarts/0_overview.md | 2 +- .../v6/docs/content/quickstarts/1_client_credentials.md | 2 +- IdentityServer/v6/docs/content/quickstarts/4_ef.md | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/IdentityServer/v6/docs/content/quickstarts/0_overview.md b/IdentityServer/v6/docs/content/quickstarts/0_overview.md index 791c1e4b..7f4e7850 100644 --- a/IdentityServer/v6/docs/content/quickstarts/0_overview.md +++ b/IdentityServer/v6/docs/content/quickstarts/0_overview.md @@ -20,7 +20,7 @@ Every quickstart has a reference solution - you can find the code in the [sample The first thing you should do is install our templates: ``` -dotnet new --install Duende.IdentityServer.Templates::6.3.1 +dotnet new --install Duende.IdentityServer.Templates ``` They will be used as a starting point for the various tutorials. diff --git a/IdentityServer/v6/docs/content/quickstarts/1_client_credentials.md b/IdentityServer/v6/docs/content/quickstarts/1_client_credentials.md index c69d8345..40247795 100644 --- a/IdentityServer/v6/docs/content/quickstarts/1_client_credentials.md +++ b/IdentityServer/v6/docs/content/quickstarts/1_client_credentials.md @@ -28,7 +28,7 @@ the quickstarts. To install the templates open a console window and type the following command: ```console -dotnet new --install Duende.IdentityServer.Templates::6.3.1 +dotnet new --install Duende.IdentityServer.Templates ``` ## Create the Solution and IdentityServer Project diff --git a/IdentityServer/v6/docs/content/quickstarts/4_ef.md b/IdentityServer/v6/docs/content/quickstarts/4_ef.md index cf18e4e3..2c83d34a 100644 --- a/IdentityServer/v6/docs/content/quickstarts/4_ef.md +++ b/IdentityServer/v6/docs/content/quickstarts/4_ef.md @@ -40,11 +40,14 @@ with the EntityFramework integration already added: *dotnet new isef*. ## Configure IdentityServer ### Install Duende.IdentityServer.EntityFramework IdentityServer's Entity Framework integration is provided by the -*Duende.IdentityServer.EntityFramework* NuGet package. Run the following command -from the *src/IdentityServer* directory to install it: +*Duende.IdentityServer.EntityFramework* NuGet package. Run the following +commands from the *src/IdentityServer* directory to replace the +*Duende.IdentityServer* package with it. Replacing packages prevents any +dependency issues with version mismatches. ```console -dotnet add package Duende.IdentityServer.EntityFramework --version 6.3.1 +dotnet remove package Duende.IdentityServer +dotnet add package Duende.IdentityServer.EntityFramework ``` ### Install Microsoft.EntityFrameworkCore.Sqlite