From a3176bc50c42b650b2f47db37ffe0a0ff34476c1 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 17 Jan 2024 22:03:15 +0000 Subject: [PATCH 1/3] Update launch settings --- .../RazorPagesPizza/Properties/launchSettings.json | 11 ++++++++++- .../RazorPagesPizza/Properties/launchSettings.json | 11 ++++++++++- .../0-start/PizzaStore/Properties/launchSettings.json | 11 ++++++++++- .../PizzaStore/Properties/launchSettings.json | 11 ++++++++++- .../ConnectFour/Properties/launchSettings.json | 11 ++++++++++- .../ConnectFour/Properties/launchSettings.json | 11 ++++++++++- 6 files changed, 60 insertions(+), 6 deletions(-) diff --git a/3-razor-pages/0-start/RazorPagesPizza/RazorPagesPizza/Properties/launchSettings.json b/3-razor-pages/0-start/RazorPagesPizza/RazorPagesPizza/Properties/launchSettings.json index 051486d..c696f3e 100644 --- a/3-razor-pages/0-start/RazorPagesPizza/RazorPagesPizza/Properties/launchSettings.json +++ b/3-razor-pages/0-start/RazorPagesPizza/RazorPagesPizza/Properties/launchSettings.json @@ -8,7 +8,16 @@ } }, "profiles": { - "RazorPagesPizza": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5101", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, diff --git a/3-razor-pages/1-complete/RazorPagesPizza/RazorPagesPizza/Properties/launchSettings.json b/3-razor-pages/1-complete/RazorPagesPizza/RazorPagesPizza/Properties/launchSettings.json index 051486d..c696f3e 100644 --- a/3-razor-pages/1-complete/RazorPagesPizza/RazorPagesPizza/Properties/launchSettings.json +++ b/3-razor-pages/1-complete/RazorPagesPizza/RazorPagesPizza/Properties/launchSettings.json @@ -8,7 +8,16 @@ } }, "profiles": { - "RazorPagesPizza": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5101", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, diff --git a/4-minimal-api/0-start/PizzaStore/Properties/launchSettings.json b/4-minimal-api/0-start/PizzaStore/Properties/launchSettings.json index 569ef24..36c68b3 100644 --- a/4-minimal-api/0-start/PizzaStore/Properties/launchSettings.json +++ b/4-minimal-api/0-start/PizzaStore/Properties/launchSettings.json @@ -8,7 +8,16 @@ } }, "profiles": { - "PizzaStore": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5112", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, diff --git a/4-minimal-api/1-complete/PizzaStore/Properties/launchSettings.json b/4-minimal-api/1-complete/PizzaStore/Properties/launchSettings.json index 569ef24..36c68b3 100644 --- a/4-minimal-api/1-complete/PizzaStore/Properties/launchSettings.json +++ b/4-minimal-api/1-complete/PizzaStore/Properties/launchSettings.json @@ -8,7 +8,16 @@ } }, "profiles": { - "PizzaStore": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5112", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, diff --git a/5-blazor/0-start/ConnectFour/Properties/launchSettings.json b/5-blazor/0-start/ConnectFour/Properties/launchSettings.json index 75c94c8..492abe8 100644 --- a/5-blazor/0-start/ConnectFour/Properties/launchSettings.json +++ b/5-blazor/0-start/ConnectFour/Properties/launchSettings.json @@ -8,7 +8,16 @@ } }, "profiles": { - "ConnectFour": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5007", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, diff --git a/5-blazor/1-complete/ConnectFour/Properties/launchSettings.json b/5-blazor/1-complete/ConnectFour/Properties/launchSettings.json index 75c94c8..492abe8 100644 --- a/5-blazor/1-complete/ConnectFour/Properties/launchSettings.json +++ b/5-blazor/1-complete/ConnectFour/Properties/launchSettings.json @@ -8,7 +8,16 @@ } }, "profiles": { - "ConnectFour": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5007", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, From da40aabad3da8a227e4d2a71144c42a342bf3ffb Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 17 Jan 2024 22:12:13 +0000 Subject: [PATCH 2/3] fix action --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 28b9143..7d5d7bd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -25,7 +25,7 @@ jobs: - 3-razor-pages/1-complete/RazorPagesPizza/RazorPagesPizza/RazorPagesPizza.csproj - 4-minimal-api/0-start/PizzaStore/PizzaStore.csproj - 4-minimal-api/1-complete/PizzaStore/PizzaStore.csproj - - 5-blazor/0-start/ConnectFour.csproj + - 5-blazor/0-start/ConnectFour/ConnectFour.csproj - 5-blazor/1-complete/ConnectFour/ConnectFour.csproj steps: From dec1b81909dc50c706fa8ee5354ae98b9d9eff2e Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 17 Jan 2024 22:15:03 +0000 Subject: [PATCH 3/3] fix typo --- 5-blazor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5-blazor/README.md b/5-blazor/README.md index 1a85b17..0659664 100644 --- a/5-blazor/README.md +++ b/5-blazor/README.md @@ -390,7 +390,7 @@ Let's add some error handling and indicators to our board to make the current st ``` - The `CurrentTurn` property is automatically calculated based on the state of the `winnerMessage` and the `PlayerTurn` property of the `GameState`. - - The `ResetStyle` is calculated based on contents of the `WinnerMessage`. If there's a `winnerMessage`, we make the reset button appear on screen. + - The `ResetStyle` is calculated based on contents of the `winnerMessage`. If there's a `winnerMessage`, we make the reset button appear on screen. 1. Let's handle the error message when a piece is played. Add a line to clear the error message and then wrap the code in the `PlayPiece` method with a `try...catch` block to set the `errorMessage` if an exception occurred: