Skip to content

Commit 4ec67cb

Browse files
committed
Upgrade to .NET 10.
1 parent 33a5649 commit 4ec67cb

10 files changed

Lines changed: 22 additions & 23 deletions

File tree

examples/Directory.Build.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<TargetFramework>net9.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
@@ -22,6 +22,9 @@
2222
</ItemGroup>
2323

2424
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
25+
<!-- Allow underscores in test method names. -->
26+
<NoWarn>CA1707</NoWarn>
27+
<IsTestProject>true</IsTestProject>
2528
<EnableNUnitRunner>true</EnableNUnitRunner>
2629
<OutputType>Exe</OutputType>
2730
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>

examples/Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
</PropertyGroup>
77
<ItemGroup>
88
<PackageVersion Include="JetBrains.Annotations" Version="2025.2.2" />
9-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
9+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1010
<!-- Needed until NUnit3TestAdapter references v2.0.0. -->
1111
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="2.0.0"/>
1212
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.1.0"/>
1313
<!-- Needed until NUnit3TestAdapter references v2.0.0. -->
14-
<PackageVersion Include="Microsoft.Testing.Extensions.VSTestBridge" Version="2.0.0"/>
14+
<PackageVersion Include="Microsoft.Testing.Extensions.VSTestBridge" Version="2.0.2"/>
1515
<PackageVersion Include="MrKWatkins.Assertions" Version="0.0.21"/>
1616
<PackageVersion Include="NUnit" Version="4.4.0" />
1717
<PackageVersion Include="NUnit3TestAdapter" Version="5.2.0" />

examples/Listeners.Tests/Listeners.Tests.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<RootNamespace>MrKWatkins.Ast.Examples.Listeners.Tests</RootNamespace>
4-
<!-- Allow underscores in test method names. -->
5-
<NoWarn>CA1707</NoWarn>
6-
</PropertyGroup>
7-
82
<ItemGroup>
93
<ProjectReference Include="..\Listeners\Listeners.csproj"/>
104
</ItemGroup>

examples/Maths.Tests/Maths.Tests.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<RootNamespace>MrKWatkins.Ast.Examples.Maths.Tests</RootNamespace>
4-
<!-- Allow underscores in test method names. -->
5-
<NoWarn>CA1707</NoWarn>
6-
</PropertyGroup>
7-
82
<ItemGroup>
93
<ProjectReference Include="..\Maths\Maths.csproj"/>
104
</ItemGroup>

examples/global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"test": {
3+
"runner": "Microsoft.Testing.Platform"
4+
}
5+
}

src/Directory.Build.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<TargetFramework>net9.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
@@ -21,6 +21,9 @@
2121
</ItemGroup>
2222

2323
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
24+
<!-- Allow underscores in test method names. -->
25+
<NoWarn>CA1707</NoWarn>
26+
<IsTestProject>true</IsTestProject>
2427
<EnableNUnitRunner>true</EnableNUnitRunner>
2528
<OutputType>Exe</OutputType>
2629
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>

src/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77
<ItemGroup>
88
<PackageVersion Include="JetBrains.Annotations" Version="2025.2.2"/>
9-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.0"/>
9+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1"/>
1010
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0"/>
1111
<!-- Needed until NUnit3TestAdapter references v2.0.0. -->
1212
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="2.0.0"/>

src/MrKWatkins.Ast.Tests/MrKWatkins.Ast.Tests.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<!-- Allow underscores in test method names. -->
4-
<NoWarn>CA1707</NoWarn>
5-
</PropertyGroup>
6-
72
<ItemGroup>
83
<ProjectReference Include="..\MrKWatkins.Ast\MrKWatkins.Ast.csproj" />
94
</ItemGroup>

src/MrKWatkins.Ast/MrKWatkins.Ast.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Title>MrKWatkins.Ast</Title>
55
<Authors>Kevin Watkins</Authors>
66
<Description>Library to build an abstract syntax tree for use in compilers.</Description>
7-
<Copyright>Kevin Watkins 2023</Copyright>
7+
<Copyright>Kevin Watkins 2023-2025</Copyright>
88
<PackageLicenseExpression>MIT</PackageLicenseExpression>
99
<PackageProjectUrl>https://github.com/MrKWatkins/Ast</PackageProjectUrl>
1010
<RepositoryUrl>https://github.com/MrKWatkins/Ast</RepositoryUrl>

src/global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"test": {
3+
"runner": "Microsoft.Testing.Platform"
4+
}
5+
}

0 commit comments

Comments
 (0)