Skip to content

Commit 97a905c

Browse files
committed
Build: add explicit .NET 6.0 target
1 parent 986f3db commit 97a905c

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

src/Data.Matlab/Data.Matlab.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>Library</OutputType>
5-
<TargetFrameworks>net5.0;net461;net48;netstandard2.0</TargetFrameworks>
5+
<TargetFrameworks>net6.0;net5.0;net461;net48;netstandard2.0</TargetFrameworks>
66
<AssemblyName>MathNet.Numerics.Data.Matlab</AssemblyName>
77
<RootNamespace>MathNet.Numerics.Data.Matlab</RootNamespace>
88
<IsPackable>true</IsPackable>

src/Data.Text/Data.Text.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>Library</OutputType>
5-
<TargetFrameworks>net5.0;net461;net48;netstandard2.0</TargetFrameworks>
5+
<TargetFrameworks>net6.0;net5.0;net461;net48;netstandard2.0</TargetFrameworks>
66
<AssemblyName>MathNet.Numerics.Data.Text</AssemblyName>
77
<RootNamespace>MathNet.Numerics.Data.Text</RootNamespace>
88
<IsPackable>true</IsPackable>

src/FSharp/FSharp.fsproj

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>Library</OutputType>
5-
<TargetFrameworks>net5.0;net461;net48;netstandard2.0</TargetFrameworks>
5+
<TargetFrameworks>net6.0;net5.0;net461;net48;netstandard2.0</TargetFrameworks>
66
<AssemblyName>MathNet.Numerics.FSharp</AssemblyName>
77
<RootNamespace>MathNet.Numerics</RootNamespace>
88
<IsPackable>true</IsPackable>

src/Numerics.Tests/GenericMath.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ static Operator()
589589
}
590590
else
591591
{
592-
zero = default(T);
592+
zero = default;
593593
if (typeT.IsValueType)
594594
{
595595
nullOp = (INullOp<T>)Activator.CreateInstance(

src/Numerics.Tests/LinearAlgebraTests/MatrixStructureTheory.Access.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ public void CanSetSubmatrix(TestMatrix testMatrix)
700700

701701
// Invalid
702702
m = matrix.Clone();
703-
Assert.That(() => m.SetSubMatrix(0, 1, 0, 1, default(Matrix<T>)), Throws.InstanceOf<NullReferenceException>());
703+
Assert.That(() => m.SetSubMatrix(0, 1, 0, 1, default), Throws.InstanceOf<NullReferenceException>());
704704
Assert.That(() => m.SetSubMatrix(-1, 1, 0, 1, Matrix<T>.Build.Dense(1, 1)), Throws.InstanceOf<ArgumentOutOfRangeException>());
705705
Assert.That(() => m.SetSubMatrix(matrix.RowCount, 1, 0, 1, Matrix<T>.Build.Dense(1, 1)), Throws.InstanceOf<ArgumentOutOfRangeException>());
706706
Assert.That(() => m.SetSubMatrix(0, 1, -1, 1, Matrix<T>.Build.Dense(1, 1)), Throws.InstanceOf<ArgumentOutOfRangeException>());

src/Numerics.Tests/LinearAlgebraTests/MatrixStructureTheory.Reform.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void CanInsertRow(TestMatrix testMatrix)
116116
}
117117

118118
// Invalid
119-
Assert.That(() => matrix.InsertRow(0, default(Vector<T>)), Throws.Exception);
119+
Assert.That(() => matrix.InsertRow(0, default), Throws.Exception);
120120
Assert.That(() => matrix.InsertRow(-1, Vector<T>.Build.Dense(matrix.ColumnCount)), Throws.InstanceOf<ArgumentOutOfRangeException>());
121121
Assert.That(() => matrix.InsertRow(matrix.RowCount + 1, Vector<T>.Build.Dense(matrix.ColumnCount)), Throws.InstanceOf<ArgumentOutOfRangeException>());
122122
Assert.That(() => matrix.InsertRow(0, Vector<T>.Build.Dense(matrix.ColumnCount - 1)), Throws.ArgumentException);
@@ -178,7 +178,7 @@ public void CanInsertColumn(TestMatrix testMatrix)
178178
}
179179

180180
// Invalid
181-
Assert.That(() => matrix.InsertColumn(0, default(Vector<T>)), Throws.Exception);
181+
Assert.That(() => matrix.InsertColumn(0, default), Throws.Exception);
182182
Assert.That(() => matrix.InsertColumn(-1, Vector<T>.Build.Dense(matrix.RowCount)), Throws.InstanceOf<ArgumentOutOfRangeException>());
183183
Assert.That(() => matrix.InsertColumn(matrix.ColumnCount + 1, Vector<T>.Build.Dense(matrix.RowCount)), Throws.InstanceOf<ArgumentOutOfRangeException>());
184184
Assert.That(() => matrix.InsertColumn(0, Vector<T>.Build.Dense(matrix.RowCount - 1)), Throws.ArgumentException);
@@ -231,7 +231,7 @@ public void CanAppend(TestMatrix leftTestMatrix, TestMatrix rightTestMatrix)
231231
}
232232

233233
// Invalid
234-
Assert.That(() => left.Append(default(Matrix<T>)), Throws.InstanceOf<ArgumentNullException>());
234+
Assert.That(() => left.Append(default), Throws.InstanceOf<ArgumentNullException>());
235235
}
236236

237237
[Theory]
@@ -255,7 +255,7 @@ public void CanAppendIntoResult(TestMatrix leftTestMatrix, TestMatrix rightTestM
255255
}
256256

257257
// Invalid
258-
Assert.That(() => left.Append(right, default(Matrix<T>)), Throws.InstanceOf<ArgumentNullException>());
258+
Assert.That(() => left.Append(right, default), Throws.InstanceOf<ArgumentNullException>());
259259
Assert.That(() => left.Append(right, Matrix<T>.Build.Dense(left.RowCount + 1, left.ColumnCount + right.ColumnCount)), Throws.ArgumentException);
260260
Assert.That(() => left.Append(right, Matrix<T>.Build.Dense(left.RowCount - 1, left.ColumnCount + right.ColumnCount)), Throws.ArgumentException);
261261
Assert.That(() => left.Append(right, Matrix<T>.Build.Dense(left.RowCount, left.ColumnCount + right.ColumnCount + 1)), Throws.ArgumentException);
@@ -284,7 +284,7 @@ public void CanStack(TestMatrix topTestMatrix, TestMatrix bottomTestMatrix)
284284
}
285285

286286
// Invalid
287-
Assert.That(() => top.Stack(default(Matrix<T>)), Throws.InstanceOf<ArgumentNullException>());
287+
Assert.That(() => top.Stack(default), Throws.InstanceOf<ArgumentNullException>());
288288
}
289289

290290
[Theory]
@@ -308,7 +308,7 @@ public void CanStackIntoResult(TestMatrix topTestMatrix, TestMatrix bottomTestMa
308308
}
309309

310310
// Invalid
311-
Assert.That(() => top.Stack(bottom, default(Matrix<T>)), Throws.InstanceOf<ArgumentNullException>());
311+
Assert.That(() => top.Stack(bottom, default), Throws.InstanceOf<ArgumentNullException>());
312312
Assert.That(() => top.Stack(bottom, Matrix<T>.Build.Dense(top.RowCount + bottom.RowCount + 1, top.ColumnCount)), Throws.ArgumentException);
313313
Assert.That(() => top.Stack(bottom, Matrix<T>.Build.Dense(top.RowCount + bottom.RowCount - 1, top.ColumnCount)), Throws.ArgumentException);
314314
Assert.That(() => top.Stack(bottom, Matrix<T>.Build.Dense(top.RowCount + bottom.RowCount, top.ColumnCount + 1)), Throws.ArgumentException);
@@ -341,7 +341,7 @@ public void CanDiagonalStack(TestMatrix leftTestMatrix, TestMatrix rightTestMatr
341341
}
342342

343343
// Invalid
344-
Assert.That(() => left.DiagonalStack(default(Matrix<T>)), Throws.InstanceOf<ArgumentNullException>(), "{0}+{1}->{2}", left.GetType(), right.GetType(), result.GetType());
344+
Assert.That<Matrix<T>>(() => left.DiagonalStack(default), Throws.InstanceOf<ArgumentNullException>(), "{0}+{1}->{2}", left.GetType(), right.GetType(), result.GetType());
345345
}
346346

347347
[Theory]
@@ -371,7 +371,7 @@ public void CanDiagonalStackIntoResult(TestMatrix leftTestMatrix, TestMatrix rig
371371
}
372372

373373
// Invalid
374-
Assert.That(() => left.DiagonalStack(right, default(Matrix<T>)), Throws.InstanceOf<ArgumentNullException>());
374+
Assert.That(() => left.DiagonalStack(right, default), Throws.InstanceOf<ArgumentNullException>());
375375
Assert.That(() => left.DiagonalStack(right, Matrix<T>.Build.Dense(left.RowCount + right.RowCount + 1, left.ColumnCount + right.ColumnCount)), Throws.ArgumentException);
376376
Assert.That(() => left.DiagonalStack(right, Matrix<T>.Build.Dense(left.RowCount + right.RowCount - 1, left.ColumnCount + right.ColumnCount)), Throws.ArgumentException);
377377
Assert.That(() => left.DiagonalStack(right, Matrix<T>.Build.Dense(left.RowCount + right.RowCount, left.ColumnCount + right.ColumnCount + 1)), Throws.ArgumentException);

src/Numerics/Numerics.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>Library</OutputType>
5-
<TargetFrameworks>net5.0;net461;net48;netstandard2.0</TargetFrameworks>
5+
<TargetFrameworks>net6.0;net5.0;net461;net48;netstandard2.0</TargetFrameworks>
66
<AssemblyName>MathNet.Numerics</AssemblyName>
77
<RootNamespace>MathNet.Numerics</RootNamespace>
88
<IsPackable>true</IsPackable>

src/Providers.CUDA/Providers.CUDA.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>Library</OutputType>
5-
<TargetFrameworks>net5.0;net461;net48;netstandard2.0</TargetFrameworks>
5+
<TargetFrameworks>net6.0;net5.0;net461;net48;netstandard2.0</TargetFrameworks>
66
<AssemblyName>MathNet.Numerics.Providers.CUDA</AssemblyName>
77
<RootNamespace>MathNet.Numerics.Providers.CUDA</RootNamespace>
88
<IsPackable>true</IsPackable>

src/Providers.MKL/Providers.MKL.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>Library</OutputType>
5-
<TargetFrameworks>net5.0;net461;net48;netstandard2.0</TargetFrameworks>
5+
<TargetFrameworks>net6.0;net5.0;net461;net48;netstandard2.0</TargetFrameworks>
66
<AssemblyName>MathNet.Numerics.Providers.MKL</AssemblyName>
77
<RootNamespace>MathNet.Numerics.Providers.MKL</RootNamespace>
88
<IsPackable>true</IsPackable>

src/Providers.OpenBLAS/Providers.OpenBLAS.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>Library</OutputType>
5-
<TargetFrameworks>net5.0;net461;net48;netstandard2.0</TargetFrameworks>
5+
<TargetFrameworks>net6.0;net5.0;net461;net48;netstandard2.0</TargetFrameworks>
66
<AssemblyName>MathNet.Numerics.Providers.OpenBLAS</AssemblyName>
77
<RootNamespace>MathNet.Numerics.Providers.OpenBLAS</RootNamespace>
88
<IsPackable>true</IsPackable>

0 commit comments

Comments
 (0)