Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.

Commit 1b1d9eb

Browse files
authored
Added .NET 8 target (#238)
* Updated projects to target net8 * Added new interactive server project and updated CI bits * Added nullable reference types
1 parent e038a08 commit 1b1d9eb

File tree

67 files changed

+519
-1283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+519
-1283
lines changed

.github/workflows/ci-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
types: [ published ]
88

99
env:
10-
NETCORE_VERSION: '7.0.x'
11-
OUTPUT_DIR: 'net7.0'
10+
NETCORE_VERSION: '8.0.x'
11+
OUTPUT_DIR: 'net8.0'
1212
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1313
DOTNET_CLI_TELEMETRY_OPTOUT: true
1414
PROJECT_NAME: LocalStorage

.github/workflows/ci-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [ main ]
66

77
env:
8-
NETCORE_VERSION: '7.0.100'
8+
NETCORE_VERSION: '8.0.100'
99
PROJECT_NAME: Blazored.LocalStorage
1010

1111
jobs:

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
46+
uses: github/codeql-action/init@v2
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
5353

5454
- uses: actions/setup-dotnet@v1
5555
with:
56-
dotnet-version: '7.0.100'
56+
dotnet-version: '8.0.100'
5757

5858
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5959
# If this step fails, then you should remove it and run the build manually (see below)
@@ -72,4 +72,4 @@ jobs:
7272
# make release
7373

7474
- name: Perform CodeQL Analysis
75-
uses: github/codeql-action/analyze@v1
75+
uses: github/codeql-action/analyze@v2

Blazored.LocalStorage.sln

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{F20B
99
EndProject
1010
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWebAssembly", "samples\BlazorWebAssembly\BlazorWebAssembly.csproj", "{D6953CE0-6AD5-434C-99AA-7FF1E26724D4}"
1111
EndProject
12-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorServer", "samples\BlazorServer\BlazorServer.csproj", "{767D657A-5410-4714-9477-99929D3FF709}"
13-
EndProject
1412
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9170D7A9-70CE-48E3-88A3-F11D2983103E}"
1513
ProjectSection(SolutionItems) = preProject
1614
.github\workflows\ci-main.yml = .github\workflows\ci-main.yml
1715
.github\workflows\ci-pr.yml = .github\workflows\ci-pr.yml
1816
README.md = README.md
1917
.github\workflows\release-drafter.yml = .github\workflows\release-drafter.yml
2018
Directory.Build.props = Directory.Build.props
19+
.github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml
2120
EndProjectSection
2221
EndProject
2322
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{B82A5126-EE01-4B4D-B642-F954B6E4E695}"
@@ -28,6 +27,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bUnitExample", "samples\bUn
2827
EndProject
2928
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazored.LocalStorage.TestExtensions", "src\Blazored.LocalStorage.TestExtensions\Blazored.LocalStorage.TestExtensions.csproj", "{650F351B-06A0-4D65-8A55-C9FF8D5BC177}"
3029
EndProject
30+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InteractiveServer", "samples\InteractiveServer\InteractiveServer.csproj", "{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}"
31+
EndProject
3132
Global
3233
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3334
Debug|Any CPU = Debug|Any CPU
@@ -62,18 +63,6 @@ Global
6263
{D6953CE0-6AD5-434C-99AA-7FF1E26724D4}.Release|x64.Build.0 = Release|Any CPU
6364
{D6953CE0-6AD5-434C-99AA-7FF1E26724D4}.Release|x86.ActiveCfg = Release|Any CPU
6465
{D6953CE0-6AD5-434C-99AA-7FF1E26724D4}.Release|x86.Build.0 = Release|Any CPU
65-
{767D657A-5410-4714-9477-99929D3FF709}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
66-
{767D657A-5410-4714-9477-99929D3FF709}.Debug|Any CPU.Build.0 = Debug|Any CPU
67-
{767D657A-5410-4714-9477-99929D3FF709}.Debug|x64.ActiveCfg = Debug|Any CPU
68-
{767D657A-5410-4714-9477-99929D3FF709}.Debug|x64.Build.0 = Debug|Any CPU
69-
{767D657A-5410-4714-9477-99929D3FF709}.Debug|x86.ActiveCfg = Debug|Any CPU
70-
{767D657A-5410-4714-9477-99929D3FF709}.Debug|x86.Build.0 = Debug|Any CPU
71-
{767D657A-5410-4714-9477-99929D3FF709}.Release|Any CPU.ActiveCfg = Release|Any CPU
72-
{767D657A-5410-4714-9477-99929D3FF709}.Release|Any CPU.Build.0 = Release|Any CPU
73-
{767D657A-5410-4714-9477-99929D3FF709}.Release|x64.ActiveCfg = Release|Any CPU
74-
{767D657A-5410-4714-9477-99929D3FF709}.Release|x64.Build.0 = Release|Any CPU
75-
{767D657A-5410-4714-9477-99929D3FF709}.Release|x86.ActiveCfg = Release|Any CPU
76-
{767D657A-5410-4714-9477-99929D3FF709}.Release|x86.Build.0 = Release|Any CPU
7766
{5A6A013E-325D-4A5F-B2FA-659B4FD2BDBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7867
{5A6A013E-325D-4A5F-B2FA-659B4FD2BDBC}.Debug|Any CPU.Build.0 = Debug|Any CPU
7968
{5A6A013E-325D-4A5F-B2FA-659B4FD2BDBC}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -110,15 +99,27 @@ Global
11099
{650F351B-06A0-4D65-8A55-C9FF8D5BC177}.Release|x64.Build.0 = Release|Any CPU
111100
{650F351B-06A0-4D65-8A55-C9FF8D5BC177}.Release|x86.ActiveCfg = Release|Any CPU
112101
{650F351B-06A0-4D65-8A55-C9FF8D5BC177}.Release|x86.Build.0 = Release|Any CPU
102+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
103+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Debug|Any CPU.Build.0 = Debug|Any CPU
104+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Debug|x64.ActiveCfg = Debug|Any CPU
105+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Debug|x64.Build.0 = Debug|Any CPU
106+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Debug|x86.ActiveCfg = Debug|Any CPU
107+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Debug|x86.Build.0 = Debug|Any CPU
108+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Release|Any CPU.ActiveCfg = Release|Any CPU
109+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Release|Any CPU.Build.0 = Release|Any CPU
110+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Release|x64.ActiveCfg = Release|Any CPU
111+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Release|x64.Build.0 = Release|Any CPU
112+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Release|x86.ActiveCfg = Release|Any CPU
113+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575}.Release|x86.Build.0 = Release|Any CPU
113114
EndGlobalSection
114115
GlobalSection(SolutionProperties) = preSolution
115116
HideSolutionNode = FALSE
116117
EndGlobalSection
117118
GlobalSection(NestedProjects) = preSolution
118119
{D6953CE0-6AD5-434C-99AA-7FF1E26724D4} = {F20B2AAB-FB71-4A1C-82FE-F1750B922BF6}
119-
{767D657A-5410-4714-9477-99929D3FF709} = {F20B2AAB-FB71-4A1C-82FE-F1750B922BF6}
120120
{5A6A013E-325D-4A5F-B2FA-659B4FD2BDBC} = {B82A5126-EE01-4B4D-B642-F954B6E4E695}
121121
{10F6FB83-3135-4B73-B0EB-D008A31AE8FA} = {F20B2AAB-FB71-4A1C-82FE-F1750B922BF6}
122+
{8AC00DB6-28AF-4EA5-BB4E-9A393F574575} = {F20B2AAB-FB71-4A1C-82FE-F1750B922BF6}
122123
EndGlobalSection
123124
GlobalSection(ExtensibilityGlobals) = postSolution
124125
SolutionGuid = {2B91883F-A85A-49EB-A9C1-ABD567A9375E}

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<PropertyGroup Label="Package Versions">
55
<DotNet6Version>6.0.0</DotNet6Version>
66
<DotNet7Version>7.0.0</DotNet7Version>
7+
<DotNet8Version>8.0.0</DotNet8Version>
78
</PropertyGroup>
89

910
</Project>

samples/BlazorServer/App.razor

Lines changed: 0 additions & 12 deletions
This file was deleted.

samples/BlazorServer/BlazorServer.csproj

Lines changed: 0 additions & 17 deletions
This file was deleted.

samples/BlazorServer/Pages/Error.cshtml

Lines changed: 0 additions & 42 deletions
This file was deleted.

samples/BlazorServer/Pages/Error.cshtml.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

samples/BlazorServer/Pages/_Host.cshtml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)