Skip to content

Commit 869fc04

Browse files
committed
chore: net9
1 parent 602d259 commit 869fc04

File tree

16 files changed

+34
-19
lines changed

16 files changed

+34
-19
lines changed

.github/workflows/part-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
with:
2020
dotnet-version: |
2121
8.0.x
22+
9.0.x
2223
2324
- run: npm ci
2425
working-directory: src/coalesce-vue
@@ -47,6 +48,7 @@ jobs:
4748
with:
4849
dotnet-version: |
4950
8.0.x
51+
9.0.x
5052
5153
- run: npm ci
5254
working-directory: src/coalesce-vue
@@ -71,6 +73,7 @@ jobs:
7173
with:
7274
dotnet-version: |
7375
8.0.x
76+
9.0.x
7477
7578
- run: npm ci
7679
working-directory: src/coalesce-vue

.github/workflows/part-template-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
with:
2929
dotnet-version: |
3030
8.0.x
31+
9.0.x
3132
3233
- name: "Set dependency versions"
3334
if: success() && env.COALESCE_VERSION

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
with:
6565
dotnet-version: |
6666
8.0.x
67+
9.0.x
6768
6869
- name: Download Artifacts
6970
uses: actions/download-artifact@v4

Coalesce.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1616
Coalesce.lutconfig = Coalesce.lutconfig
1717
src\Common.props = src\Common.props
1818
src\Directory.Build.props = src\Directory.Build.props
19-
src\Directory.Packages.props = src\Directory.Packages.props
19+
Directory.Packages.props = Directory.Packages.props
2020
CHANGELOG.md = CHANGELOG.md
2121
EndProjectSection
2222
EndProject

Directory.Packages.props

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
55
</PropertyGroup>
6-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
7-
<DotNetPackageVersionSpec>6.0.*</DotNetPackageVersionSpec>
6+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0'">
7+
<DotNetPackageVersionSpec>8.0.10</DotNetPackageVersionSpec>
88
</PropertyGroup>
99
<!-- TargetFramework is empty for projects that aren't multi-targeting (i.e. the playground projects) -->
10-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' or '$(TargetFramework)' == '' ">
11-
<DotNetPackageVersionSpec>8.0.10</DotNetPackageVersionSpec>
10+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net9.0' or '$(TargetFramework)' == '' ">
11+
<DotNetPackageVersionSpec>9.0.0</DotNetPackageVersionSpec>
1212
</PropertyGroup>
1313
<ItemGroup>
1414
<PackageVersion Include="Bogus" Version="35.6.1" />
@@ -41,14 +41,14 @@
4141
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
4242
<PackageVersion Include="Xunit.SkippableFact" Version="1.4.13" />
4343
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
44-
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
45-
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
46-
<PackageVersion Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
47-
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
48-
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" />
44+
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
45+
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
46+
<PackageVersion Include="Microsoft.Extensions.Configuration.CommandLine" Version="9.0.0" />
47+
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
48+
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
4949
<PackageVersion Include="Microsoft.VisualStudio.Web.CodeGeneration" Version="2.2.4" />
5050
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
51-
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
51+
<PackageVersion Include="System.Text.Json" Version="9.0.0" />
5252
<PackageVersion Include="System.Runtime.Caching" Version="8.0.1" />
5353
</ItemGroup>
5454
</Project>

playground/Coalesce.Domain/Case.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public async Task UploadImage(AppDbContext db, IFile file)
161161
}
162162

163163
var content = new byte[file.Length];
164-
await file.Content.ReadAsync(content.AsMemory());
164+
await file.Content.ReadExactlyAsync(content.AsMemory());
165165

166166
AttachmentContent = new CaseAttachmentContent() { CaseKey = CaseKey, Content = content };
167167
AttachmentName = file.Name;

playground/Coalesce.Domain/Coalesce.Domain.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<!-- All these frameworks are included for testing code generation.
44
Override the used framework by specifying (framework: "tfm") in coalesce.json. -->
5-
<TargetFrameworks>net8.0</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
66
<IsPackable>false</IsPackable>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>

playground/Coalesce.Domain/WebShared/DemoMiddleware.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public async Task Invoke(HttpContext context)
2626
var cookie = context.Request.Cookies.FirstOrDefault(c => c.Key == "SecurityTestRole");
2727
if (!cookie.Equals(default(KeyValuePair<string, string>))
2828
&& validRoles.Contains(cookie.Value)
29-
&& context.Request.Host.Value.Contains("localhost", System.StringComparison.OrdinalIgnoreCase))
29+
&& context.Request.Host.Value?.Contains("localhost", System.StringComparison.OrdinalIgnoreCase) == true)
3030
{
3131
if (cookie.Value != "None")
3232
{
@@ -39,7 +39,7 @@ public async Task Invoke(HttpContext context)
3939
cookie = context.Request.Cookies.FirstOrDefault(c => c.Key == "DemoUserRole");
4040
if (!cookie.Equals(default(KeyValuePair<string, string>))
4141
&& validRoles.Contains(cookie.Value)
42-
&& context.Request.Host.Value.Contains("localhost", System.StringComparison.OrdinalIgnoreCase))
42+
&& context.Request.Host.Value?.Contains("localhost", System.StringComparison.OrdinalIgnoreCase) == true)
4343
{
4444
await SignInUser(context, "DemoUser", cookie.Value);
4545
}

playground/Coalesce.Web.Vue3/Coalesce.Web.Vue3.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
66

77
<Nullable>enable</Nullable>

playground/Coalesce.Web.Vue3/src/App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<v-btn variant="text" to="/test">Test</v-btn>
2121
<v-btn variant="text" to="/test-setup">Test2</v-btn>
2222
<v-btn variant="text" to="/audit-logs">Audit</v-btn>
23+
<v-btn variant="text" to="/swagger">OpenAPI</v-btn>
2324
<v-btn variant="text" href="/coalesce-security">Security Overview</v-btn>
2425

2526
<v-menu offset-y>

0 commit comments

Comments
 (0)