Skip to content

Commit ffacfd5

Browse files
feat(v0.5): Drop .net6/7
1 parent 0d915a7 commit ffacfd5

File tree

9 files changed

+36
-35
lines changed

9 files changed

+36
-35
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ concurrency:
1313

1414
env:
1515
dotnet_versions: |
16-
6.0.x
17-
7.0.x
1816
8.0.x
17+
9.0.x
1918
2019
jobs:
2120
ci:

Directory.Build.props

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project>
2+
<PropertyGroup>
3+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
4+
<ImplicitUsings>enable</ImplicitUsings>
5+
<Nullable>enable</Nullable>
6+
<WarningLevel>7</WarningLevel>
7+
<WarningsAsErrors>Nullable</WarningsAsErrors>
8+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
9+
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
10+
<LangVersion>Latest</LangVersion>
11+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
12+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
13+
<NoWarn>$(NoWarn);CS1591;CS1573</NoWarn>
14+
</PropertyGroup>
15+
</Project>

TcPnScanner.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1616
.editorconfig = .editorconfig
1717
.gitattributes = .gitattributes
1818
.gitignore = .gitignore
19+
Directory.Build.props = Directory.Build.props
1920
LICENSE = LICENSE
2021
README.md = README.md
2122
EndProjectSection

src/dsian.TcPnScanner.CLI/PnDevice/Device.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ namespace dsian.TcPnScanner.CLI.PnDevice;
99
/// </summary>
1010
/// <param name="PhysicalAddress"></param>
1111
/// <param name="NameOfStation"></param>
12-
/// <param name=""></param>
1312
internal record Device(PhysicalAddress PhysicalAddress, string NameOfStation)
1413
{
1514
public IPAddress IpAddress { get; set; } = IPAddress.None;

src/dsian.TcPnScanner.CLI/dsian.TcPnScanner.CLI.csproj

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
6-
<ImplicitUsings>enable</ImplicitUsings>
7-
<LangVersion>Latest</LangVersion>
8-
<Nullable>enable</Nullable>
9-
<WarningsAsErrors>Nullable</WarningsAsErrors>
105
<ErrorReport>none</ErrorReport>
116
<PackAsTool>True</PackAsTool>
127
<PackageLicenseFile>LICENSE</PackageLicenseFile>
@@ -18,7 +13,7 @@
1813
<Description>Scans a PROFINET and adds all Stations to a PROFINET IO Device (TF6270)</Description>
1914
<Copyright>Copyright (c) 2023 densogiaichned</Copyright>
2015
<Title>TwinCAT Profinet Device Scanner</Title>
21-
<Version>0.4.0</Version>
16+
<Version>0.5.0</Version>
2217
<AssemblyVersion>$(Version)</AssemblyVersion>
2318
<FileVersion>$(Version)</FileVersion>
2419
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
@@ -53,10 +48,10 @@
5348

5449
<ItemGroup>
5550
<PackageReference Include="CommandLineParser" Version="2.9.1" />
56-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
57-
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
58-
<PackageReference Include="Serilog" Version="4.0.0" />
59-
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
51+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.1" />
52+
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.1" />
53+
<PackageReference Include="Serilog" Version="4.2.0" />
54+
<PackageReference Include="Serilog.Extensions.Logging" Version="9.0.0" />
6055
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
6156
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
6257
<PackageReference Include="SharpPcap" Version="6.3.0" />

tests/dsian.TcPnScanner.IntegrationTests/dsian.TcPnScanner.IntegrationTests.csproj

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
84
<IsPackable>false</IsPackable>
95
<IsTestProject>true</IsTestProject>
106
</PropertyGroup>
117

128
<ItemGroup>
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
14-
<PackageReference Include="Verify" Version="25.3.1" />
15-
<PackageReference Include="Verify.Xunit" Version="25.3.1" />
16-
<PackageReference Include="xunit" Version="2.9.0" />
17-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
10+
<PackageReference Include="Verify" Version="28.9.0" />
11+
<PackageReference Include="Verify.Xunit" Version="28.9.0" />
12+
<PackageReference Include="xunit" Version="2.9.3" />
13+
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
1814
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1915
<PrivateAssets>all</PrivateAssets>
2016
</PackageReference>
21-
<PackageReference Include="coverlet.collector" Version="6.0.2">
17+
<PackageReference Include="coverlet.collector" Version="6.0.4">
2218
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2319
<PrivateAssets>all</PrivateAssets>
2420
</PackageReference>

tests/dsian.TcPnScanner.Tests/JsonIpAddressConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace dsian.TcPnScanner.Tests;
55

66
internal class JsonIpAddressConverter : Argon.JsonConverter<System.Net.IPAddress>
77
{
8-
public override IPAddress? ReadJson(JsonReader reader, Type type, IPAddress? existingValue, bool hasExisting, JsonSerializer serializer)
8+
public override IPAddress ReadJson(JsonReader reader, Type type, IPAddress? existingValue, bool hasExisting, JsonSerializer serializer)
99
{
1010
if (reader.Value is not null and string)
1111
{

tests/dsian.TcPnScanner.Tests/JsonPhysicalAddressConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace dsian.TcPnScanner.Tests;
55

66
internal class JsonPhysicalAddressConverter : Argon.JsonConverter<PhysicalAddress>
77
{
8-
public override PhysicalAddress? ReadJson(JsonReader reader, Type type, PhysicalAddress? existingValue, bool hasExisting, JsonSerializer serializer)
8+
public override PhysicalAddress ReadJson(JsonReader reader, Type type, PhysicalAddress? existingValue, bool hasExisting, JsonSerializer serializer)
99
{
1010
if (reader.Value is not null and string)
1111
{

tests/dsian.TcPnScanner.Tests/dsian.TcPnScanner.Tests.csproj

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
84
<IsPackable>false</IsPackable>
95
<IsTestProject>true</IsTestProject>
106
</PropertyGroup>
117

128
<ItemGroup>
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
14-
<PackageReference Include="Verify" Version="21.0.0" />
15-
<PackageReference Include="Verify.Xunit" Version="21.0.0" />
16-
<PackageReference Include="xunit" Version="2.5.0" />
17-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
10+
<PackageReference Include="Verify" Version="28.9.0" />
11+
<PackageReference Include="Verify.Xunit" Version="28.9.0" />
12+
<PackageReference Include="xunit" Version="2.9.3" />
13+
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
1814
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1915
<PrivateAssets>all</PrivateAssets>
2016
</PackageReference>
21-
<PackageReference Include="coverlet.collector" Version="6.0.0">
17+
<PackageReference Include="coverlet.collector" Version="6.0.4">
2218
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2319
<PrivateAssets>all</PrivateAssets>
2420
</PackageReference>

0 commit comments

Comments
 (0)