Skip to content

Commit 004ce2b

Browse files
committed
Upgrade to .NET 8.
1 parent 57fb92a commit 004ce2b

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
lines changed

examples/NeuralNetwork.NumSharp/NeuralNetwork.NumSharp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<SignAssembly>true</SignAssembly>
77
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
88
<Configurations>Debug;Release</Configurations>
9+
<LangVersion>12.0</LangVersion>
910
</PropertyGroup>
1011

1112
<ItemGroup>

src/NumSharp.Bitmap/NumSharp.Bitmap.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<RepositoryType>git</RepositoryType>
1616
<PackageTags>Numpy, NumSharp, MachineLearning, Math, Scientific, Numeric, Mathlab, SciSharp</PackageTags>
1717
<PackageLicenseUrl></PackageLicenseUrl>
18-
<LangVersion>7.3</LangVersion>
18+
<LangVersion>12.0</LangVersion>
1919
<PackageIconUrl>https://avatars3.githubusercontent.com/u/44989469?s=200&amp;v=4</PackageIconUrl>
2020
<PackageId>NumSharp.Bitmap</PackageId>
2121
<Product>NumSharp.Bitmap</Product>
@@ -75,7 +75,7 @@
7575
</Target>
7676

7777
<ItemGroup>
78-
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
78+
<PackageReference Include="System.Drawing.Common" Version="8.0.0" />
7979
</ItemGroup>
8080

8181
<ItemGroup>

src/NumSharp.Core/NumSharp.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<RepositoryType>git</RepositoryType>
1616
<PackageTags>Numpy, NumSharp, MachineLearning, Math, Scientific, Numeric, Mathlab, SciSharp</PackageTags>
1717
<PackageLicenseUrl></PackageLicenseUrl>
18-
<LangVersion>8</LangVersion>
18+
<LangVersion>12.0</LangVersion>
1919
<PackageIconUrl>https://avatars3.githubusercontent.com/u/44989469?s=200&amp;v=4</PackageIconUrl>
2020
<PackageId>NumSharp</PackageId>
2121
<Product>NumSharp</Product>
@@ -80,8 +80,8 @@
8080
</ItemGroup>
8181

8282
<ItemGroup>
83-
<PackageReference Include="System.Memory" Version="4.5.4" />
84-
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="5.0.0" />
83+
<PackageReference Include="System.Memory" Version="4.5.5" />
84+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
8585
</ItemGroup>
8686

8787
<ItemGroup>

test/NumSharp.Benchmark/NumSharp.Benchmark.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
6-
<LangVersion>9.0</LangVersion>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<LangVersion>12.0</LangVersion>
77
<Platforms>AnyCPU;x64</Platforms>
8-
<ApplicationIcon/>
9-
<Win32Resource/>
8+
<ApplicationIcon />
9+
<Win32Resource />
1010
<SignAssembly>true</SignAssembly>
1111
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
1212
<Configurations>Debug;Release;Publish</Configurations>
1313
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="System.Drawing.Common" Version="5.0.2"/>
18-
<PackageReference Include="BenchmarkDotNet" Version="0.12.1"/>
19-
<PackageReference Include="Microsoft.CSharp" Version="4.7.0"/>
20-
<PackageReference Include="Microsoft.Windows.Compatibility" Version="5.0.2"/>
21-
<PackageReference Include="System.Memory" Version="4.5.4"/>
22-
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="5.0.0"/>
17+
<PackageReference Include="System.Drawing.Common" Version="8.0.0" />
18+
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
19+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
20+
<PackageReference Include="Microsoft.Windows.Compatibility" Version="5.0.2" />
21+
<PackageReference Include="System.Memory" Version="4.5.5" />
22+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
2323
</ItemGroup>
2424

2525
<ItemGroup>
26-
<ProjectReference Include="..\..\src\NumSharp.Core\NumSharp.Core.csproj"/>
26+
<ProjectReference Include="..\..\src\NumSharp.Core\NumSharp.Core.csproj" />
2727
</ItemGroup>
2828

2929
<Target Name="LogDebugInfo">
30-
<Message Text="Building for $(TargetFramework) on $(OS)" Importance="High"/>
30+
<Message Text="Building for $(TargetFramework) on $(OS)" Importance="High" />
3131
</Target>
3232

3333
</Project>

test/NumSharp.UnitTest/NumSharp.UnitTest.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
7-
<LangVersion>latest</LangVersion>
7+
<LangVersion>12.0</LangVersion>
88
<Platforms>AnyCPU</Platforms>
99
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
1010
<Configurations>Debug;Release;Publish</Configurations>
@@ -37,8 +37,8 @@
3737
<PackageReference Include="FluentAssertions" Version="5.10.3" />
3838
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
3939
<PackageReference Include="OpenCover" Version="4.7.922" />
40-
<PackageReference Include="System.Memory" Version="4.5.4" />
41-
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="5.0.0" />
40+
<PackageReference Include="System.Memory" Version="4.5.5" />
41+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
4242
</ItemGroup>
4343

4444
<ItemGroup>

0 commit comments

Comments
 (0)