Skip to content

Commit d35a090

Browse files
committed
- Updated .NET packages to 6.0.11
- Updated third-party packages to their latest version - Updated P3 up to Chapter 12 - Updated TP Edits up to Chapter 4
1 parent 45b98a1 commit d35a090

File tree

40 files changed

+509
-957
lines changed

40 files changed

+509
-957
lines changed

All_Chapters.sln

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyBGList", "Chapter_11\MyBG
174174
EndProject
175175
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Chapter_12", "Chapter_12", "{A9E85310-BFB1-499E-83B7-D3F4867D68D4}"
176176
EndProject
177-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Exercises", "Exercises", "{FFC58158-BAE0-426C-A538-3802B8B9D7A0}"
178-
EndProject
179177
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyBGList", "Chapter_12\MyBGList\MyBGList.csproj", "{854C2B9A-623F-4C3F-A629-E35011D7A1C0}"
180178
EndProject
181179
Global
@@ -269,7 +267,6 @@ Global
269267
{F64591D2-2D08-4914-965C-386BB27A0FB9} = {CD4A6C4B-93E4-4B3C-A7F6-9759203F0910}
270268
{093E5F60-C9CF-4075-9462-78C351A2AEE8} = {9541C59A-FB1C-4D2F-9E88-79AD53D89C7D}
271269
{B654DD87-F63F-422B-BF0C-8BF4257FDB85} = {9541C59A-FB1C-4D2F-9E88-79AD53D89C7D}
272-
{FFC58158-BAE0-426C-A538-3802B8B9D7A0} = {A9E85310-BFB1-499E-83B7-D3F4867D68D4}
273270
{854C2B9A-623F-4C3F-A629-E35011D7A1C0} = {A9E85310-BFB1-499E-83B7-D3F4867D68D4}
274271
EndGlobalSection
275272
GlobalSection(ExtensibilityGlobals) = postSolution

Chapter_02/MyBGList/MyBGList.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
16+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
1717
</ItemGroup>
1818

1919
</Project>

Chapter_03.sln

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31829.152
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Exercises", "Exercises", "{AA746CA8-0449-446E-A3DD-DBF873BB0A31}"
7+
ProjectSection(SolutionItems) = preProject
8+
Chapter_03\Exercises\Program.cs = Chapter_03\Exercises\Program.cs
9+
EndProjectSection
10+
EndProject
11+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Controllers", "Controllers", "{57FB61AF-0672-4A14-8294-01AAD0A15627}"
12+
EndProject
13+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "v1", "v1", "{95648068-F200-495D-8549-A94E70A2E7BD}"
14+
ProjectSection(SolutionItems) = preProject
15+
Chapter_03\Exercises\Controllers\v1\BoardGamesController.cs = Chapter_03\Exercises\Controllers\v1\BoardGamesController.cs
16+
EndProjectSection
17+
EndProject
18+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "v2", "v2", "{03D58D1C-6EB3-41B1-9C6F-402377680504}"
19+
ProjectSection(SolutionItems) = preProject
20+
Chapter_03\Exercises\Controllers\v2\BoardGamesController.cs = Chapter_03\Exercises\Controllers\v2\BoardGamesController.cs
21+
Chapter_03\Exercises\Controllers\v2\CodeOnDemandController.cs = Chapter_03\Exercises\Controllers\v2\CodeOnDemandController.cs
22+
EndProjectSection
23+
EndProject
24+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "v3", "v3", "{18447BD9-E097-4709-90CE-D147A3FBE714}"
25+
ProjectSection(SolutionItems) = preProject
26+
Chapter_03\Exercises\Controllers\v3\CodeOnDemandController.cs = Chapter_03\Exercises\Controllers\v3\CodeOnDemandController.cs
27+
EndProjectSection
28+
EndProject
29+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyBGList", "Chapter_03\MyBGList\MyBGList.csproj", "{32CA5161-67E1-4301-924C-6ABEE8F198B2}"
30+
EndProject
31+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyBGList_ApiVersion", "Chapter_03\MyBGList_ApiVersion\MyBGList_ApiVersion.csproj", "{7E3BB2A7-B3E7-4CEA-994A-870887DF92C8}"
32+
EndProject
33+
Global
34+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
35+
Debug|Any CPU = Debug|Any CPU
36+
Release|Any CPU = Release|Any CPU
37+
EndGlobalSection
38+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
39+
{32CA5161-67E1-4301-924C-6ABEE8F198B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40+
{32CA5161-67E1-4301-924C-6ABEE8F198B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
41+
{32CA5161-67E1-4301-924C-6ABEE8F198B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
42+
{32CA5161-67E1-4301-924C-6ABEE8F198B2}.Release|Any CPU.Build.0 = Release|Any CPU
43+
{7E3BB2A7-B3E7-4CEA-994A-870887DF92C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44+
{7E3BB2A7-B3E7-4CEA-994A-870887DF92C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
45+
{7E3BB2A7-B3E7-4CEA-994A-870887DF92C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
46+
{7E3BB2A7-B3E7-4CEA-994A-870887DF92C8}.Release|Any CPU.Build.0 = Release|Any CPU
47+
EndGlobalSection
48+
GlobalSection(SolutionProperties) = preSolution
49+
HideSolutionNode = FALSE
50+
EndGlobalSection
51+
GlobalSection(NestedProjects) = preSolution
52+
{57FB61AF-0672-4A14-8294-01AAD0A15627} = {AA746CA8-0449-446E-A3DD-DBF873BB0A31}
53+
{95648068-F200-495D-8549-A94E70A2E7BD} = {57FB61AF-0672-4A14-8294-01AAD0A15627}
54+
{03D58D1C-6EB3-41B1-9C6F-402377680504} = {57FB61AF-0672-4A14-8294-01AAD0A15627}
55+
{18447BD9-E097-4709-90CE-D147A3FBE714} = {57FB61AF-0672-4A14-8294-01AAD0A15627}
56+
EndGlobalSection
57+
GlobalSection(ExtensibilityGlobals) = postSolution
58+
SolutionGuid = {58E128FF-6460-4A49-9E95-9D8E08D888FC}
59+
EndGlobalSection
60+
EndGlobal

Chapter_03/Exercises/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@
104104
Results.Text("<script>" +
105105
"window.alert('Your client supports JavaScript!" +
106106
"\\r\\n\\r\\n" +
107-
"User-Agent: ' + navigator.userAgent);" +
107+
$"Server time (UTC): {DateTime.UtcNow.ToString("o")}" +
108+
"\\r\\n" +
109+
"Client time (UTC): ' + new Date().toISOString());" +
108110
"</script>" +
109111
"<noscript>Your client does not support JavaScript</noscript>",
110112
"text/html"));

Chapter_03/MyBGList/DTO/RestDTO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
public class RestDTO<T>
44
{
5-
public T Data { get; set; } = default(T)!;
5+
public T Data { get; set; } = default!;
66

77
public List<LinkDTO> Links { get; set; } = new List<LinkDTO>();
88
}

Chapter_03/MyBGList/MyBGList.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
16+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
1717
</ItemGroup>
1818

1919
</Project>

Chapter_03/MyBGList_ApiVersion/DTO/v1/RestDTO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
public class RestDTO<T>
44
{
5-
public T Data { get; set; } = default(T)!;
5+
public T Data { get; set; } = default!;
66

77
public List<LinkDTO> Links { get; set; } = new List<LinkDTO>();
88
}

Chapter_03/MyBGList_ApiVersion/DTO/v2/RestDTO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace MyBGList.DTO.v2
44
{
55
public class RestDTO<T>
66
{
7-
public T Items { get; set; } = default(T)!;
7+
public T Items { get; set; } = default!;
88

99
public List<LinkDTO> Links { get; set; } = new List<LinkDTO>();
1010
}

Chapter_03/MyBGList_ApiVersion/MyBGList_ApiVersion.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
<ItemGroup>
1616
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.0.0" />
1717
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.0.0" />
18-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
19-
</ItemGroup>
20-
21-
<ItemGroup>
22-
<Folder Include="Helpers\" />
18+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
2319
</ItemGroup>
2420

2521
</Project>

Chapter_04.sln

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.4.33110.190
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Exercises", "Exercises", "{6773746C-CAC2-4114-81DE-B3418FB485C5}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Migrations", "Migrations", "{E532843F-BD36-4AA6-9D3D-0465C89782FC}"
9+
ProjectSection(SolutionItems) = preProject
10+
Chapter_04\Exercises\Migrations\20220127000740_Chapter04_Exercises.cs = Chapter_04\Exercises\Migrations\20220127000740_Chapter04_Exercises.cs
11+
Chapter_04\Exercises\Migrations\20220127000740_Chapter04_Exercises.Designer.cs = Chapter_04\Exercises\Migrations\20220127000740_Chapter04_Exercises.Designer.cs
12+
Chapter_04\Exercises\Migrations\ApplicationDbContextModelSnapshot.cs = Chapter_04\Exercises\Migrations\ApplicationDbContextModelSnapshot.cs
13+
EndProjectSection
14+
EndProject
15+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Model", "Model", "{58879DBA-9C5B-438E-BE1F-5911F3DB3ED0}"
16+
ProjectSection(SolutionItems) = preProject
17+
Chapter_04\Exercises\Model\ApplicationDbContext.cs = Chapter_04\Exercises\Model\ApplicationDbContext.cs
18+
Chapter_04\Exercises\Model\BoardGame.cs = Chapter_04\Exercises\Model\BoardGame.cs
19+
Chapter_04\Exercises\Model\BoardGames_Categories.cs = Chapter_04\Exercises\Model\BoardGames_Categories.cs
20+
Chapter_04\Exercises\Model\BoardGames_Domains.cs = Chapter_04\Exercises\Model\BoardGames_Domains.cs
21+
Chapter_04\Exercises\Model\BoardGames_Mechanics.cs = Chapter_04\Exercises\Model\BoardGames_Mechanics.cs
22+
Chapter_04\Exercises\Model\Category.cs = Chapter_04\Exercises\Model\Category.cs
23+
Chapter_04\Exercises\Model\Domain.cs = Chapter_04\Exercises\Model\Domain.cs
24+
Chapter_04\Exercises\Model\Mechanic.cs = Chapter_04\Exercises\Model\Mechanic.cs
25+
Chapter_04\Exercises\Model\Publisher.cs = Chapter_04\Exercises\Model\Publisher.cs
26+
EndProjectSection
27+
EndProject
28+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyBGList", "Chapter_04\MyBGList\MyBGList.csproj", "{7C7E2E25-3F23-44F6-AD95-2BF123B526C3}"
29+
EndProject
30+
Global
31+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
32+
Debug|Any CPU = Debug|Any CPU
33+
Release|Any CPU = Release|Any CPU
34+
EndGlobalSection
35+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
36+
{7C7E2E25-3F23-44F6-AD95-2BF123B526C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37+
{7C7E2E25-3F23-44F6-AD95-2BF123B526C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
38+
{7C7E2E25-3F23-44F6-AD95-2BF123B526C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
39+
{7C7E2E25-3F23-44F6-AD95-2BF123B526C3}.Release|Any CPU.Build.0 = Release|Any CPU
40+
EndGlobalSection
41+
GlobalSection(SolutionProperties) = preSolution
42+
HideSolutionNode = FALSE
43+
EndGlobalSection
44+
GlobalSection(NestedProjects) = preSolution
45+
{E532843F-BD36-4AA6-9D3D-0465C89782FC} = {6773746C-CAC2-4114-81DE-B3418FB485C5}
46+
{58879DBA-9C5B-438E-BE1F-5911F3DB3ED0} = {6773746C-CAC2-4114-81DE-B3418FB485C5}
47+
EndGlobalSection
48+
GlobalSection(ExtensibilityGlobals) = postSolution
49+
SolutionGuid = {58E128FF-6460-4A49-9E95-9D8E08D888FC}
50+
EndGlobalSection
51+
EndGlobal

0 commit comments

Comments
 (0)