Skip to content

Commit

Permalink
⬆️ Upgrade to .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyfran committed Nov 18, 2024
1 parent 675c65e commit 8667b34
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'
dotnet-version: '9.0'
include-prerelease: true
- name: Restore dependencies
run: dotnet restore
Expand Down
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<DotnetVersion>net9.0</DotnetVersion>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0
FROM mcr.microsoft.com/dotnet/sdk:9.0

COPY *.sln .
COPY deps ./deps
Expand Down
2 changes: 1 addition & 1 deletion src/Duets.Agents/Duets.Agents.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>$(DotnetVersion)</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Expand Down
3 changes: 2 additions & 1 deletion src/Duets.Cli/Duets.Cli.fsproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>$(DotnetVersion)</TargetFramework>
<Version>0.1.0</Version>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<RootNamespace>Cli</RootNamespace>
<WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Include="Scenes.fs"/>
Expand Down
2 changes: 1 addition & 1 deletion src/Duets.Common/Duets.Common.fsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>$(DotnetVersion)</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<RootNamespace>Common</RootNamespace>
Expand Down
4 changes: 2 additions & 2 deletions src/Duets.Common/Files.fs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ let readAll path =
/// created already. Notice that while the file is automatically created the
/// parent folders are not, so if the path is `/a/b/c.txt` and the b folder
/// is not present, the file will not be written.
let write path content = File.WriteAllText(path, content)
let write (path: string) (content: string) = File.WriteAllText(path, content)

/// Appends the content to the specified path. Creates the file if it's not
/// created already. Notice that while the file is automatically created the
/// parent folders are not, so if the path is `/a/b/c.txt` and the b folder
/// is not present, the file will not be written.
let append path content = File.AppendAllText(path, content)
let append (path: string) (content: string) = File.AppendAllText(path, content)

/// Deletes the file at the specified path.
let delete path = File.Delete path
2 changes: 1 addition & 1 deletion src/Duets.Data/Duets.Data.fsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>$(DotnetVersion)</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<RootNamespace>Data</RootNamespace>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Duets.Entities/Duets.Entities.fsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>$(DotnetVersion)</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<RootNamespace>Entities</RootNamespace>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Duets.Simulation/Duets.Simulation.fsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>$(DotnetVersion)</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/Data.Tests/Data.Tests.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>$(DotnetVersion)</TargetFramework>

<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
Expand Down
2 changes: 1 addition & 1 deletion tests/Entities.Tests/Entities.Tests.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>$(DotnetVersion)</TargetFramework>

<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
Expand Down
2 changes: 1 addition & 1 deletion tests/Simulation.Tests/Simulation.Tests.fsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>$(DotnetVersion)</TargetFramework>
<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
<RootNamespace>Simulation.Tests</RootNamespace>
Expand Down
2 changes: 1 addition & 1 deletion tests/Test.Common/Test.Common.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>$(DotnetVersion)</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Expand Down

0 comments on commit 8667b34

Please sign in to comment.