From d4e78d1b1b55166a4a1cf8ef07831336f2c8a21d Mon Sep 17 00:00:00 2001 From: 13xforever Date: Wed, 13 Nov 2024 13:10:30 +0500 Subject: [PATCH] upgrade solution to net9.0 this bumps docker image base to ubuntu 24.04 --- .github/workflows/codeql-analysis.yml | 6 ++++-- .github/workflows/dotnet.yml | 18 ++++++++++++------ CONTRIBUTING.md | 5 ----- Clients/CirrusCiClient/CirrusCiClient.csproj | 2 +- Clients/CompatApiClient/CompatApiClient.csproj | 2 +- Clients/GithubClient/GithubClient.csproj | 2 +- .../IrdLibraryClient/IrdLibraryClient.csproj | 2 +- Clients/MediafireClient/MediafireClient.csproj | 2 +- Clients/OneDriveClient/OneDriveClient.csproj | 2 +- Clients/PsnClient/PsnClient.csproj | 2 +- .../YandexDiskClient/YandexDiskClient.csproj | 2 +- CompatBot/CompatBot.csproj | 2 +- Dockerfile | 2 +- HomoglyphConverter/HomoglyphConverter.csproj | 2 +- README.md | 8 ++++---- Tests/Tests.csproj | 2 +- 16 files changed, 32 insertions(+), 29 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 76eeb9d6..c1c0c703 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -30,9 +30,11 @@ jobs: steps: - name: Update dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: | + 8.0.x + 9.0.x - name: Checkout repository uses: actions/checkout@v2 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index cbaf7654..0c11ec4e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -13,9 +13,11 @@ jobs: steps: - uses: actions/checkout@v2 - name: update dotnet core sdk - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: | + 8.0.x + 9.0.x - name: dotnet restore (first try) run: dotnet restore --ignore-failed-sources - name: dotnet restore (second try) @@ -33,9 +35,11 @@ jobs: steps: - uses: actions/checkout@v2 - name: update dotnet core sdk - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: | + 8.0.x + 9.0.x - name: dotnet restore (first try) run: dotnet restore --ignore-failed-sources - name: dotnet restore (second try) @@ -68,9 +72,11 @@ jobs: - name: "clean build artifacts" run: git clean -dfx - name: update dotnet core sdk - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: | + 8.0.x + 9.0.x - name: dotnet restore (first try) run: dotnet restore --ignore-failed-sources - name: dotnet restore (second try) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 343d7631..598cac5f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,8 +16,3 @@ Recommended development setup See [readme](README.md) for detailed requirement and recommended IDE setup. **Note** that Docker image is currently experimental and wasn't tested in any way. - -IntelliCode Model Link -====================== -You can use [this link](https://prod.intellicode.vsengsaas.visualstudio.com/get?m=7127523297134326920E959DF01AF224) for the pre-trained IntelliCode model based on this project. -In Visual Code 2019.1 or later, you can do this by navigatin `View` → `Other Windows` → `IntelliCode Model Management` → `Add Model`. \ No newline at end of file diff --git a/Clients/CirrusCiClient/CirrusCiClient.csproj b/Clients/CirrusCiClient/CirrusCiClient.csproj index af36b5f5..4a44c3f7 100644 --- a/Clients/CirrusCiClient/CirrusCiClient.csproj +++ b/Clients/CirrusCiClient/CirrusCiClient.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 enable false diff --git a/Clients/CompatApiClient/CompatApiClient.csproj b/Clients/CompatApiClient/CompatApiClient.csproj index f11b1c5f..02186697 100644 --- a/Clients/CompatApiClient/CompatApiClient.csproj +++ b/Clients/CompatApiClient/CompatApiClient.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable diff --git a/Clients/GithubClient/GithubClient.csproj b/Clients/GithubClient/GithubClient.csproj index d6b20438..9117bbcf 100644 --- a/Clients/GithubClient/GithubClient.csproj +++ b/Clients/GithubClient/GithubClient.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 latest enable diff --git a/Clients/IrdLibraryClient/IrdLibraryClient.csproj b/Clients/IrdLibraryClient/IrdLibraryClient.csproj index 02de879c..a3968d2a 100644 --- a/Clients/IrdLibraryClient/IrdLibraryClient.csproj +++ b/Clients/IrdLibraryClient/IrdLibraryClient.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 latest enable diff --git a/Clients/MediafireClient/MediafireClient.csproj b/Clients/MediafireClient/MediafireClient.csproj index 1e501172..848a1044 100644 --- a/Clients/MediafireClient/MediafireClient.csproj +++ b/Clients/MediafireClient/MediafireClient.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 enable diff --git a/Clients/OneDriveClient/OneDriveClient.csproj b/Clients/OneDriveClient/OneDriveClient.csproj index 1e501172..848a1044 100644 --- a/Clients/OneDriveClient/OneDriveClient.csproj +++ b/Clients/OneDriveClient/OneDriveClient.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 enable diff --git a/Clients/PsnClient/PsnClient.csproj b/Clients/PsnClient/PsnClient.csproj index 768cdac3..053f20f0 100644 --- a/Clients/PsnClient/PsnClient.csproj +++ b/Clients/PsnClient/PsnClient.csproj @@ -1,6 +1,6 @@  - net8.0 + net9.0 enable diff --git a/Clients/YandexDiskClient/YandexDiskClient.csproj b/Clients/YandexDiskClient/YandexDiskClient.csproj index 1e501172..848a1044 100644 --- a/Clients/YandexDiskClient/YandexDiskClient.csproj +++ b/Clients/YandexDiskClient/YandexDiskClient.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 enable diff --git a/CompatBot/CompatBot.csproj b/CompatBot/CompatBot.csproj index 537ce0ef..6ca92bf8 100644 --- a/CompatBot/CompatBot.csproj +++ b/CompatBot/CompatBot.csproj @@ -1,7 +1,7 @@  Exe - net8.0 + net9.0 true CompatBot c2e6548b-b215-4a18-a010-958ef294b310 diff --git a/Dockerfile b/Dockerfile index 4d21a9ee..085b4a34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS base +FROM mcr.microsoft.com/dotnet/sdk:9.0-noble AS base # Native libgdiplus dependencies RUN apt-get update diff --git a/HomoglyphConverter/HomoglyphConverter.csproj b/HomoglyphConverter/HomoglyphConverter.csproj index 372d377f..3d78965e 100644 --- a/HomoglyphConverter/HomoglyphConverter.csproj +++ b/HomoglyphConverter/HomoglyphConverter.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 latest enable false diff --git a/README.md b/README.md index 9a1ac855..743044a9 100644 --- a/README.md +++ b/README.md @@ -9,15 +9,15 @@ You can read the design and implementation notes by visiting the folders in the Development Requirements ------------------------ -* [.NET 8.0 SDK](https://dotnet.microsoft.com/download) or newer +* [.NET 9.0 SDK](https://dotnet.microsoft.com/download) or newer * Any text editor, but here are some recommends: - * [Visual Studio](https://visualstudio.microsoft.com/) (Windows and Mac only, has free Community edition) + * [Visual Studio](https://visualstudio.microsoft.com/) (Windows, has free Community edition) * [Visual Studio Code](https://code.visualstudio.com/) (cross-platform, free) - * [JetBrains Rider](https://www.jetbrains.com/rider/) (cross-platform) + * [JetBrains Rider](https://www.jetbrains.com/rider/) (cross-platform, free for Non-Commercial use) Runtime Requirements -------------------- -* [.NET 8.0 SDK](https://dotnet.microsoft.com/download) or newer to run from sources +* [.NET 9.0 SDK](https://dotnet.microsoft.com/download) or newer to run from sources * bot needs `dotnet` command to be available (i.e. alias for the Snap package) * Optionally Google API credentials to access Google Drive: * Create new project in the [Google Cloud Resource Manager](https://console.developers.google.com/cloud-resource-manager) diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index ab609229..72691c72 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,6 +1,6 @@  - net8.0 + net9.0 false