Skip to content

Commit f6e1ce5

Browse files
authored
Merge pull request #899 from sys27/feature/dotnet-10
Upgrade to .NET 10.
2 parents e42399e + 5f4d5de commit f6e1ce5

17 files changed

+48
-96
lines changed

CI/azure-pipelines.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
vmImage: 'ubuntu-latest'
1919

2020
variables:
21-
solution: 'xFunc.sln'
21+
solution: 'xFunc.slnx'
2222
buildConfiguration: 'Release'
2323

2424
steps:
2525
- task: UseDotNet@2
26-
displayName: 'Install .NET 9'
26+
displayName: 'Install .NET 10'
2727
inputs:
2828
packageType: 'sdk'
29-
version: '9.0.x'
29+
version: '10.0.x'
3030

3131
- task: DotNetCoreCLI@2
3232
displayName: 'dotnet restore'
@@ -71,10 +71,10 @@ jobs:
7171

7272
- task: PublishPipelineArtifact@1
7373
inputs:
74-
path: xFunc.Maths/bin/Release/net8.0
74+
path: xFunc.Maths/bin/Release/net10.0
7575
artifact: xFunc.Maths
7676

7777
- task: PublishPipelineArtifact@1
7878
inputs:
7979
path: nupkgs
80-
artifact: NuGet Packages
80+
artifact: NuGet Packages

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<PackageVersion Include="NUnit.Analyzers" Version="4.11.2" />
88
<PackageVersion Include="NUnit3TestAdapter" Version="6.0.0" />
99
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
10-
<PackageVersion Include="System.Collections.Immutable" Version="9.0.10" />
10+
<PackageVersion Include="System.Collections.Immutable" Version="10.0.1" />
1111
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
1212
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />
1313
<PackageVersion Include="coverlet.msbuild" Version="6.0.4" />
1414
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1515
<PackageVersion Include="ReportGenerator" Version="5.5.1" />
1616
</ItemGroup>
17-
</Project>
17+
</Project>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The MIT License (MIT)
2-
Copyright © 2012-2024 Dmytro Kyshchenko
2+
Copyright © 2012-2025 Dmytro Kyshchenko
33

44
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
55

xFunc.Benchmark/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void Main(string[] args)
2121
.Run(args,
2222
ManualConfig.Create(DefaultConfig.Instance)
2323
.AddJob(Job.MediumRun
24-
.WithToolchain(CsProjCoreToolchain.NetCoreApp90))
24+
.WithToolchain(CsProjCoreToolchain.NetCoreApp10_0))
2525
.AddDiagnoser(MemoryDiagnoser.Default)
2626
.StopOnFirstError());
2727
}

xFunc.Benchmark/xFunc.Benchmark.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<LangVersion>latest</LangVersion>
77
<IsPackable>false</IsPackable>
88
<ImplicitUsings>enable</ImplicitUsings>

xFunc.Cli/xFunc.Cli.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
66
<LangVersion>latest</LangVersion>
77
<PackAsTool>true</PackAsTool>
8-
<ToolCommandName>xfunc</ToolCommandName>
8+
<ToolCommandName>xfunc</ToolCommandName>
99
<PackageId>xFunc.Cli</PackageId>
1010
<Version>4.5.0</Version>
1111
<Product>xFunc.Maths</Product>
1212
<Authors>Dmytro Kyshchenko</Authors>
1313
<Company />
14-
<Copyright>Copyright ©2012-2024 Dmytro Kyshchenko</Copyright>
14+
<Copyright>Copyright © 2012-2025 Dmytro Kyshchenko</Copyright>
1515
<Description>xFunc provides a powerful parser and analyzer for mathematical expressions. It excels at calculating derivatives, simplifying expressions, and achieving high performance.</Description>
1616
<PackageProjectUrl>https://github.com/sys27/xFunc</PackageProjectUrl>
1717
<PackageIcon>xFunc.png</PackageIcon>

xFunc.Maths/Expressions/BinaryExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected BinaryExpression(IExpression left, IExpression right)
3030
/// <exception cref="ParseException">The <paramref name="arguments"/> collection should have only two arguments.</exception>
3131
protected BinaryExpression(ImmutableArray<IExpression> arguments)
3232
{
33-
if (arguments == null)
33+
if (arguments.IsDefault)
3434
throw new ArgumentNullException(nameof(arguments));
3535

3636
if (arguments.Length < 2)

xFunc.Maths/Expressions/Curry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public Curry(IExpression function, ImmutableArray<IExpression> parameters)
7575
/// <exception cref="ArgumentException">The amount of argument in the <paramref name="arguments"/> collection is less than 1.</exception>
7676
internal Curry(ImmutableArray<IExpression> arguments)
7777
{
78-
Debug.Assert(arguments != null, "arguments == null");
78+
Debug.Assert(!arguments.IsDefault, "arguments == null");
7979

8080
if (arguments.Length < 1)
8181
throw new ArgumentException(Resource.LessParams, nameof(arguments));

xFunc.Maths/Expressions/DifferentParametersExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected DifferentParametersExpression(IEnumerable<IExpression> arguments)
2727
/// <exception cref="ArgumentException">The amount of argument in the <paramref name="arguments"/> collection is less than <c>MinParametersCount</c> or greater than <c>MaxParametersCount</c>.</exception>
2828
protected DifferentParametersExpression(ImmutableArray<IExpression> arguments)
2929
{
30-
if (arguments == null)
30+
if (arguments.IsDefault)
3131
throw new ArgumentNullException(nameof(arguments));
3232

3333
if (arguments.Length < MinParametersCount)

xFunc.Maths/Expressions/Matrices/Matrix.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class Matrix : IExpression
1919
/// <param name="vectors">The vectors.</param>
2020
/// <exception cref="ArgumentNullException"><paramref name="vectors"/> is null.</exception>
2121
public Matrix(Vector[] vectors)
22-
: this(vectors.ToImmutableArray())
22+
: this(vectors is null ? default : vectors.ToImmutableArray())
2323
{
2424
}
2525

@@ -30,7 +30,7 @@ public Matrix(Vector[] vectors)
3030
/// <exception cref="ArgumentNullException"><paramref name="vectors"/> is null.</exception>
3131
public Matrix(ImmutableArray<Vector> vectors)
3232
{
33-
if (vectors == null)
33+
if (vectors.IsDefault)
3434
throw new ArgumentNullException(nameof(vectors));
3535

3636
if (vectors.Length < MinParametersCount)

0 commit comments

Comments
 (0)