Skip to content

Commit

Permalink
Update to net8 and F# 8
Browse files Browse the repository at this point in the history
The version constraints for the System.* packages
are still up for debate.
  • Loading branch information
hyazinthh committed Mar 27, 2024
1 parent 4d50a4d commit 91e1681
Show file tree
Hide file tree
Showing 23 changed files with 716 additions and 285 deletions.
4 changes: 2 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"isRoot": true,
"tools": {
"paket": {
"version": "7.2.1",
"version": "8.0.3",
"commands": [
"paket"
]
},
"aardpack": {
"version": "1.0.19",
"version": "1.0.21",
"commands": [
"aardpack"
]
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "6.0.0",
"version": "8.0.0",
"rollForward": "latestFeature",
"allowPrerelease": false
}
Expand Down
43 changes: 28 additions & 15 deletions paket.dependencies
Original file line number Diff line number Diff line change
@@ -1,35 +1,48 @@
framework: netstandard2.0, net472, net6.0, net6.0-windows
framework: netstandard2.0, net472, net8.0, net8.0-windows
storage: none
source https://api.nuget.org/v3/index.json

nuget Aardvark.Build ~> 1.0.22

nuget FSharp.Core >= 5.0.0 lowest_matching: true
nuget Microsoft.NETFramework.ReferenceAssemblies >= 1.0.0 lowest_matching: true
nuget Aardvark.Build ~> 1.0.19
nuget FSharp.Core >= 8.0.0 lowest_matching: true
nuget System.Collections.Immutable >= 8.0.0 lowest_matching: true
nuget System.Reflection.Metadata >= 8.0.0 lowest_matching: true
nuget System.Drawing.Common >= 8.0.0 lowest_matching: true
nuget System.Text.Json >= 8.0.0 lowest_matching: true

nuget System.Dynamic.Runtime ~> 4.3.0

nuget Aardvark.Base.TypeProviders ~> 4.5.15
nuget System.Collections.Immutable >= 5.0.0 lowest_matching: true

nuget System.Dynamic.Runtime ~> 4.3.0
nuget DevILSharp ~> 0.2.9
nuget SixLabors.ImageSharp ~> 2.1.3
nuget System.Reflection.Metadata >= 5.0.0 lowest_matching: true
nuget System.Drawing.Common >= 4.7.0 lowest_matching: true
nuget DevILSharp ~> 0.2.20
nuget SixLabors.ImageSharp ~> 2.1.7

nuget FSharp.Data.Adaptive ~> 1.2.0
nuget CSharp.Data.Adaptive ~> 1.2.0
nuget Unofficial.LibTessDotNet ~> 2.0.2

nuget System.Reactive
nuget Microsoft.CodeAnalysis.CSharp ~> 4.1.0

nuget FsPickler ~> 5.3.2
nuget FsPickler.Json ~> 5.3.2

nuget System.Text.Json >= 4.7.2 lowest_matching: true
group CodeGenerator
framework net8.0
storage: none
source https://api.nuget.org/v3/index.json

nuget Microsoft.NETFramework.ReferenceAssemblies = 1.0.0
nuget Microsoft.CodeAnalysis.CSharp ~> 4.1.0

group Demo
framework net8.0
storage: none
source https://api.nuget.org/v3/index.json

nuget System.Reactive ~> 6.0.0
nuget CSharp.Data.Adaptive ~> 1.2.0

group Test
framework: net6.0, net6.0-windows
framework: net8.0, net8.0-windows
storage: none
source https://api.nuget.org/v3/index.json

nuget NUnit ~> 3.13.3
Expand Down
888 changes: 653 additions & 235 deletions paket.lock

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions src/Aardvark.Base.IO/Aardvark.Base.IO.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@
<ItemGroup>
<Compile Remove="**\*_template.cs" />
<Compile Remove="**\*_generator.cs" />
<Compile Remove="Properties\**" />
</ItemGroup>
<ItemGroup>
<None Include="**\*_template.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="Properties\**" />
<None Remove="Properties\**" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Aardvark.Base.Tensors.CSharp\Aardvark.Base.Tensors.CSharp.csproj" />
<ProjectReference Include="..\Aardvark.Base.Tensors\Aardvark.Base.Tensors.fsproj" />
Expand All @@ -28,8 +33,5 @@
<Name>Aardvark.Base</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<Import Project="..\..\.paket\Paket.Restore.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/Aardvark.Base/Aardvark.Base.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<TargetFrameworks>net6.0-windows7.0;net472</TargetFrameworks>
<TargetFrameworks>net8.0-windows7.0;net472</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<UseWindowsForms>true</UseWindowsForms>
<UseWPF>true</UseWPF>
Expand Down
2 changes: 1 addition & 1 deletion src/CodeGenerator/CodeGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/CodeGenerator/paket.references
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
group CodeGenerator

Microsoft.NETFramework.ReferenceAssemblies
Aardvark.Build
Microsoft.CodeAnalysis.CSharp
2 changes: 1 addition & 1 deletion src/Demo/CoreTest/CoreTest.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<WarnOn>3389;3390;3395</WarnOn>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Demo/ExamplesCSharp/ExamplesCSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\..\..\bin\Debug</OutputPath>
Expand Down
7 changes: 2 additions & 5 deletions src/Demo/ExamplesCSharp/paket.references
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
FSharp.Core
Aardvark.Build
FsPickler
Aardvark.Base.TypeProviders
FSharp.Data.Adaptive
group Demo

CSharp.Data.Adaptive
System.Reactive
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\..\..\bin\Debug</OutputPath>
Expand Down
4 changes: 2 additions & 2 deletions src/Demo/PixImageDemo/PixImageDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\..\..\bin\Debug</OutputPath>
Expand All @@ -11,7 +11,7 @@
<OutputPath>..\..\..\bin\Release</OutputPath>
</PropertyGroup>
<PropertyGroup>
<RunWorkingDirectory>$(OutputPath)\net6.0</RunWorkingDirectory>
<RunWorkingDirectory>$(OutputPath)\net8.0</RunWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Aardvark.Base.Tensors\Aardvark.Base.Tensors.fsproj" />
Expand Down
4 changes: 2 additions & 2 deletions src/Demo/RandomSampleDemo/RandomSampleDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\..\..\bin\Debug</OutputPath>
Expand All @@ -11,7 +11,7 @@
<OutputPath>..\..\..\bin\Release</OutputPath>
</PropertyGroup>
<PropertyGroup>
<RunWorkingDirectory>$(OutputPath)\net6.0</RunWorkingDirectory>
<RunWorkingDirectory>$(OutputPath)\net8.0</RunWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Aardvark.Base.Tensors\Aardvark.Base.Tensors.fsproj" />
Expand Down
4 changes: 2 additions & 2 deletions src/Demo/Scratch/Scratch.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<WarnOn>3389;3390;3395</WarnOn>
</PropertyGroup>
Expand All @@ -13,7 +13,7 @@
<OutputPath>..\..\..\bin\Release</OutputPath>
</PropertyGroup>
<PropertyGroup>
<RunWorkingDirectory>$(OutputPath)\net6.0</RunWorkingDirectory>
<RunWorkingDirectory>$(OutputPath)\net8.0</RunWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<None Include="paket.references" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<ApplicationIcon />
<GenerateProgramFile>false</GenerateProgramFile>
<OutputType>Exe</OutputType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<WarnOn>3389;3390;3395</WarnOn>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<WarnOn>3389;3390;3395</WarnOn>
Expand All @@ -14,7 +14,7 @@
<OutputPath>..\..\..\bin\Release</OutputPath>
</PropertyGroup>
<PropertyGroup>
<RunWorkingDirectory>$(OutputPath)\net6.0</RunWorkingDirectory>
<RunWorkingDirectory>$(OutputPath)\net8.0</RunWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="data\test.jpg" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<WarnOn>3389;3390;3395</WarnOn>
</PropertyGroup>
Expand All @@ -13,7 +13,7 @@
<OutputPath>..\..\..\bin\Release</OutputPath>
</PropertyGroup>
<PropertyGroup>
<RunWorkingDirectory>$(OutputPath)\net6.0</RunWorkingDirectory>
<RunWorkingDirectory>$(OutputPath)\net8.0</RunWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<Compile Include="DynamicCode.fs" />
Expand Down
4 changes: 2 additions & 2 deletions src/Tests/Aardvark.Base.Tests/Aardvark.Base.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\..\..\bin\Debug</OutputPath>
Expand All @@ -13,7 +13,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<RunWorkingDirectory>$(OutputPath)\net6.0</RunWorkingDirectory>
<RunWorkingDirectory>$(OutputPath)\net8.0</RunWorkingDirectory>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<WarnOn>3389;3390;3395</WarnOn>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<GenerateProgramFile>false</GenerateProgramFile>
<WarnOn>3389;3390;3395</WarnOn>
Expand All @@ -14,7 +14,7 @@
<OutputPath>..\..\..\bin\Release</OutputPath>
</PropertyGroup>
<PropertyGroup>
<RunWorkingDirectory>$(OutputPath)\net6.0</RunWorkingDirectory>
<RunWorkingDirectory>$(OutputPath)\net8.0</RunWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<Compile Include="PolyRegion2dTests.fs" />
Expand Down

0 comments on commit 91e1681

Please sign in to comment.