Skip to content

Commit 4b83df0

Browse files
authored
Update .NET to version 10 (#963)
* Update .NET to version 10 Updating to latest .Net version since v8.0 is end-of-life Also Fix .NET version in docker * build fix * build fix
1 parent 2ff1a95 commit 4b83df0

File tree

14 files changed

+35
-14
lines changed

14 files changed

+35
-14
lines changed

.github/workflows/common.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Setup .NET
8383
uses: actions/setup-dotnet@v5
8484
with:
85-
dotnet-version: 8.0.x
85+
dotnet-version: 10.0.x
8686
- name: Restore dependencies
8787
run: dotnet restore
8888

@@ -165,7 +165,7 @@ jobs:
165165
- name: Setup .NET
166166
uses: actions/setup-dotnet@v5
167167
with:
168-
dotnet-version: 8.0.x
168+
dotnet-version: 10.0.x
169169
- name: Restore dependencies
170170
run: dotnet restore
171171

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup .NET
1616
uses: actions/setup-dotnet@v5
1717
with:
18-
dotnet-version: 8.0.x
18+
dotnet-version: 10.0.x
1919
- name: Restore dependencies
2020
run: dotnet restore
2121
- name: Build

ExtractorLauncher/.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.cs]
2+
3+
# CA1515: Consider making public types internal
4+
# ExtractorLauncher is an application, not a library - public types are fine
5+
dotnet_diagnostic.CA1515.severity = none

ExtractorLauncher/ExtractorLauncher.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<RootNamespace>Cognite.OpcUa</RootNamespace>
77
<AssemblyName>OpcuaExtractor</AssemblyName>
88
<AnalysisMode>AllEnabledByDefault</AnalysisMode>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ with the dotnet CLI.
1414

1515
### Building
1616

17-
Install .NET 8.0 from [here](https://dotnet.microsoft.com/download).
17+
Install .NET 10.0 from [here](https://dotnet.microsoft.com/download).
1818

1919
To run:
2020
`dotnet run --project ExtractorLauncher/`.
@@ -87,7 +87,7 @@ The server will be reachable at `opc.tcp://localhost:62546`. Run `docker run --r
8787

8888
## Development
8989

90-
You will need .NET 8.0. Then simply run `dotnet build` to compile,
90+
You will need .NET 10.0. Then simply run `dotnet build` to compile,
9191
or `dotnet run --project ExtractorLauncher` to compile and run.
9292

9393
The compiler may complain about OpcUaExtractorSetup and OpcUaServiceManager, which aren't generally necessary to compile during development.

Server/.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.cs]
2+
3+
# CA1515: Consider making public types internal
4+
# Server is a test utility project, not a production library - public types are intentional
5+
dotnet_diagnostic.CA1515.severity = none

Server/Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<LangVersion>9.0</LangVersion>
77
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
88
</PropertyGroup>

Test/.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[*.cs]
2+
3+
# CA1515: Consider making public types internal
4+
# Test project types don't need to be internal - they're not part of any public API
5+
dotnet_diagnostic.CA1515.severity = none
6+
7+
# CA1873: Avoid expensive string formatting in logging
8+
# Not critical for test code - readability is more important
9+
dotnet_diagnostic.CA1873.severity = none

Test/CommonTestUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You should have received a copy of the GNU General Public License
3838
[assembly: CLSCompliant(false)]
3939
namespace Test
4040
{
41-
public static class CommonTestUtils
41+
internal static class CommonTestUtils
4242
{
4343
private static readonly object portCounterLock = new object();
4444
private static int portCounter = 62200;

Test/Test.csproj

Lines changed: 1 addition & 1 deletion
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+
<TargetFramework>net10.0</TargetFramework>
55
<IsTestProject>true</IsTestProject>
66
<IsPackable>false</IsPackable>
77
<LangVersion>9.0</LangVersion>

0 commit comments

Comments
 (0)