Skip to content

Commit c1b8728

Browse files
committed
Everywhere: Add .net 9.0 target
We still have targets for netstandard2.0 (net462), net6.0, net8.0.
1 parent 73927ef commit c1b8728

File tree

9 files changed

+19
-18
lines changed

9 files changed

+19
-18
lines changed

.github/workflows/build.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
platform: [ windows-latest, ubuntu-latest, macos-14 ]
1616
steps:
1717
- uses: actions/checkout@v4
18-
- name: Setup .NET Core 8.0
18+
- name: Setup .NET 8.0 and 9.0
1919
uses: actions/setup-dotnet@v4
2020
with:
21-
dotnet-version: 8.0.x
21+
dotnet-version: |
22+
8.0.x
23+
9.0.x
2224
- name: Install dependencies
2325
run: dotnet restore Messaging.sln
2426
- name: Build

.github/workflows/codeql-analysis.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
2828

2929
steps:
30+
31+
- name: Setup .NET
32+
uses: actions/setup-dotnet@v3
33+
with:
34+
dotnet-version: 9.0.x
35+
3036
- name: Checkout repository
3137
uses: actions/checkout@v4
3238

@@ -40,21 +46,14 @@ jobs:
4046
# Prefix the list here with "+" to use these queries and those in the config file.
4147
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4248

43-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
44-
# If this step fails, then you should remove it and run the build manually (see below)
45-
- name: Autobuild
46-
uses: github/codeql-action/autobuild@v3
47-
4849
# ℹ️ Command-line programs to run using the OS shell.
4950
# 📚 https://git.io/JvXDl
5051

5152
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
5253
# and modify them (or add more) to build your code if your project
5354
# uses a compiled language
5455

55-
#- run: |
56-
# make bootstrap
57-
# make release
56+
- run: dotnet build Messaging.sln
5857

5958
- name: Perform CodeQL Analysis
6059
uses: github/codeql-action/analyze@v3

src/Helsenorge.Messaging.AdminLib/Helsenorge.Messaging.AdminLib.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>disable</ImplicitUsings>
66
<Nullable>disable</Nullable>
77
</PropertyGroup>

src/Helsenorge.Messaging/Helsenorge.Messaging.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net6.0;net8.0;net9.0</TargetFrameworks>
55
<LangVersion>10.0</LangVersion>
66
<AssemblyName>Helsenorge.Messaging</AssemblyName>
77
<RootNamespace>Helsenorge.Messaging</RootNamespace>

src/Helsenorge.Registries/Helsenorge.Registries.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net6.0;net8.0;net9.0</TargetFrameworks>
55
<LangVersion>10.0</LangVersion>
66
<AssemblyName>Helsenorge.Registries</AssemblyName>
77
<RootNamespace>Helsenorge.Registries</RootNamespace>
@@ -38,7 +38,7 @@
3838
<PackageReference Include="System.ServiceModel.Security" Version="6.0.0" />
3939
</ItemGroup>
4040

41-
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
41+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0' Or '$(TargetFramework)' == 'net9.0'">
4242
<PackageReference Include="System.ServiceModel.Http" Version="8.1.1" />
4343
<PackageReference Include="System.ServiceModel.NetTcp" Version="8.1.1" />
4444
<PackageReference Include="System.ServiceModel.Security" Version="6.0.0" />

test/Helsenorge.Messaging.AdminLib.Tests/Helsenorge.Messaging.AdminLib.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>disable</ImplicitUsings>
66
<Nullable>disable</Nullable>
77
</PropertyGroup>

test/Helsenorge.Messaging.Tests.Mocks/Helsenorge.Messaging.Tests.Mocks.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>disable</ImplicitUsings>
66
<Nullable>disable</Nullable>
77
</PropertyGroup>

test/Helsenorge.Messaging.Tests/Helsenorge.Messaging.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<LangVersion>10.0</LangVersion>
66
<AssemblyName>Helsenorge.Messaging.Tests</AssemblyName>
77
<RootNamespace>Helsenorge.Messaging.Tests</RootNamespace>

test/Helsenorge.Registries.Tests/Helsenorge.Registries.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<AssemblyName>Helsenorge.Registries.Tests</AssemblyName>
66
<RootNamespace>Helsenorge.Registries.Tests</RootNamespace>
77
<ProjectGuid>{0DD35E31-7384-4F3D-BBE0-366993DC2307}</ProjectGuid>

0 commit comments

Comments
 (0)