Skip to content

Commit

Permalink
Build: update to .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Jan 15, 2025
1 parent e30384b commit 77f0d23
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
# SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
#
# SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: NuGet cache
uses: actions/cache@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
# SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
#
# SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Set up .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: NuGet cache
uses: actions/cache@v4
with:
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->
Expand All @@ -12,6 +12,10 @@ Versioning v2.0.0](https://semver.org/spec/v2.0.0.html).

When considering the public API, we take into account the tool configuration and external requirements of the framework-dependent binary. Meaning that basically, breaking changes in configuration files, command-line syntax, or in the runtime requirements should be causing a major version increment.

## [Unreleased] (4.0.0)
### Changed
- **(Requirement update!)** Update to .NET 9.

## [3.0.0] - 2024-06-23
### Changed
- **(Requirement update!)** Update to .NET 8.
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->
Expand All @@ -10,7 +10,7 @@ Contributor Guide
Prerequisites
-------------
To develop Emulsion, make sure you've installed the following tools:
- [.NET SDK][dotnet] 8.0 or later,
- [.NET SDK][dotnet] 9.0 or later,
- [Node.js][node.js] 18:
- if you use [nvm][] or [nvm-windows][], then run `nvm use 18`.

Expand Down
4 changes: 2 additions & 2 deletions Emulsion.ContentProxy/Emulsion.ContentProxy.fsproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Emulsion.Database/Emulsion.Database.fsproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->

<Project Sdk="Microsoft.Build.NoTargets/3.7.0">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Emulsion.Messaging/Emulsion.Messaging.fsproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Emulsion.Settings/Emulsion.Settings.fsproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions Emulsion.Telegram/Emulsion.Telegram.fsproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Emulsion.TestFramework/Emulsion.TestFramework.fsproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->

<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<OutputType>Library</OutputType>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions Emulsion.Tests/Emulsion.Tests.fsproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Emulsion.Web/Emulsion.Web.fsproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->

<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Emulsion/Emulsion.fsproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!--
SPDX-FileCopyrightText: 2024 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-FileCopyrightText: 2025 Emulsion contributors <https://github.com/codingteam/emulsion>
SPDX-License-Identifier: MIT
-->

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Version>3.0.0</Version>
<RollForward>Major</RollForward>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Emulsion/Xmpp/SharpXmppHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ let private bookmark (roomJid: string) (nickname: string) (password: string opti
room.Add(nickElement)
room

#nowarn "9" // for NativePtr
#nowarn 9 // for NativePtr
let SanitizeXmlText(text: string): string =
let mutable hasError = false
let mutable span = text.AsSpan()
Expand Down

0 comments on commit 77f0d23

Please sign in to comment.