diff --git a/.github/workflows/build_net.yml b/.github/workflows/build_net.yml index c36dec0..8918133 100644 --- a/.github/workflows/build_net.yml +++ b/.github/workflows/build_net.yml @@ -16,13 +16,13 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe diff --git a/.github/workflows/build_net_core.yml b/.github/workflows/build_net_core.yml index 59e58ed..52a827c 100644 --- a/.github/workflows/build_net_core.yml +++ b/.github/workflows/build_net_core.yml @@ -16,13 +16,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Install dependencies run: dotnet restore PullRequestQuantifier.sln @@ -54,7 +54,7 @@ jobs: - name: Upload release artifacts if: github.ref == 'refs/heads/main' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: release path: release/* diff --git a/.github/workflows/feedback_service.yml b/.github/workflows/feedback_service.yml index 38141d9..d3682a3 100644 --- a/.github/workflows/feedback_service.yml +++ b/.github/workflows/feedback_service.yml @@ -11,13 +11,13 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Install dependencies run: dotnet restore src/PullRequestQuantifier.Feedback.Service/PullRequestQuantifier.Feedback.Service.csproj env: diff --git a/.github/workflows/github_client.yml b/.github/workflows/github_client.yml index 283a654..b8a9809 100644 --- a/.github/workflows/github_client.yml +++ b/.github/workflows/github_client.yml @@ -11,13 +11,13 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Install dependencies run: dotnet restore src/Clients/PullRequestQuantifier.GitHub.Client/PullRequestQuantifier.GitHub.Client.csproj env: diff --git a/.github/workflows/repository_service.yml b/.github/workflows/repository_service.yml index 83fdffa..c1c4f3c 100644 --- a/.github/workflows/repository_service.yml +++ b/.github/workflows/repository_service.yml @@ -11,13 +11,13 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Install dependencies run: dotnet restore src/PullRequestQuantifier.Repository.Service/PullRequestQuantifier.Repository.Service.csproj env: diff --git a/.github/workflows/vscode_client.yml b/.github/workflows/vscode_client.yml index 84cbafd..d6ad4fd 100644 --- a/.github/workflows/vscode_client.yml +++ b/.github/workflows/vscode_client.yml @@ -12,13 +12,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Install dependencies run: dotnet restore src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj env: @@ -36,7 +36,7 @@ jobs: run: dotnet publish src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj --configuration Release --self-contained false -p:PackageVsix=true - name: Upload release artifacts if: github.ref == 'refs/heads/main' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: vsix path: src/Clients/PullRequestQuantifier.VsCode.Client/**/*.vsix diff --git a/src/Clients/PullRequestQuantifier.Client.Tests/PullRequestQuantifier.Client.Tests.csproj b/src/Clients/PullRequestQuantifier.Client.Tests/PullRequestQuantifier.Client.Tests.csproj index 8b42f27..829f489 100644 --- a/src/Clients/PullRequestQuantifier.Client.Tests/PullRequestQuantifier.Client.Tests.csproj +++ b/src/Clients/PullRequestQuantifier.Client.Tests/PullRequestQuantifier.Client.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false diff --git a/src/Clients/PullRequestQuantifier.Client/PullRequestQuantifier.Client.csproj b/src/Clients/PullRequestQuantifier.Client/PullRequestQuantifier.Client.csproj index cba651f..d6ae430 100644 --- a/src/Clients/PullRequestQuantifier.Client/PullRequestQuantifier.Client.csproj +++ b/src/Clients/PullRequestQuantifier.Client/PullRequestQuantifier.Client.csproj @@ -11,10 +11,10 @@ - - + + - + diff --git a/src/Clients/PullRequestQuantifier.GitHub.Client.Tests/PullRequestQuantifier.GitHub.Client.Tests.csproj b/src/Clients/PullRequestQuantifier.GitHub.Client.Tests/PullRequestQuantifier.GitHub.Client.Tests.csproj index d4f0ab6..d48e2fc 100644 --- a/src/Clients/PullRequestQuantifier.GitHub.Client.Tests/PullRequestQuantifier.GitHub.Client.Tests.csproj +++ b/src/Clients/PullRequestQuantifier.GitHub.Client.Tests/PullRequestQuantifier.GitHub.Client.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false diff --git a/src/Clients/PullRequestQuantifier.GitHub.Client/PullRequestQuantifier.GitHub.Client.csproj b/src/Clients/PullRequestQuantifier.GitHub.Client/PullRequestQuantifier.GitHub.Client.csproj index 018f3a4..e4437b7 100644 --- a/src/Clients/PullRequestQuantifier.GitHub.Client/PullRequestQuantifier.GitHub.Client.csproj +++ b/src/Clients/PullRequestQuantifier.GitHub.Client/PullRequestQuantifier.GitHub.Client.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 true @@ -12,7 +12,7 @@ - + diff --git a/src/Clients/PullRequestQuantifier.GitHub.Common.Tests/PullRequestQuantifier.GitHub.Common.Tests.csproj b/src/Clients/PullRequestQuantifier.GitHub.Common.Tests/PullRequestQuantifier.GitHub.Common.Tests.csproj index 510d41b..5cd28b6 100644 --- a/src/Clients/PullRequestQuantifier.GitHub.Common.Tests/PullRequestQuantifier.GitHub.Common.Tests.csproj +++ b/src/Clients/PullRequestQuantifier.GitHub.Common.Tests/PullRequestQuantifier.GitHub.Common.Tests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 false diff --git a/src/Clients/PullRequestQuantifier.Local.Client/PullRequestQuantifier.Local.Client.csproj b/src/Clients/PullRequestQuantifier.Local.Client/PullRequestQuantifier.Local.Client.csproj index cb48cab..ff72b1c 100644 --- a/src/Clients/PullRequestQuantifier.Local.Client/PullRequestQuantifier.Local.Client.csproj +++ b/src/Clients/PullRequestQuantifier.Local.Client/PullRequestQuantifier.Local.Client.csproj @@ -2,12 +2,12 @@ Exe - net7.0 + net8.0 true - + diff --git a/src/Clients/PullRequestQuantifier.Local.Context/PullRequestQuantifier.Local.Context.csproj b/src/Clients/PullRequestQuantifier.Local.Context/PullRequestQuantifier.Local.Context.csproj index 77a806f..4d41833 100644 --- a/src/Clients/PullRequestQuantifier.Local.Context/PullRequestQuantifier.Local.Context.csproj +++ b/src/Clients/PullRequestQuantifier.Local.Context/PullRequestQuantifier.Local.Context.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 true diff --git a/src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj b/src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj index d8a9d69..17b756d 100644 --- a/src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj +++ b/src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 pull-request-quantifier\ true diff --git a/src/PullRequestQuantifier.Abstractions.Tests/PullRequestQuantifier.Abstractions.Tests.csproj b/src/PullRequestQuantifier.Abstractions.Tests/PullRequestQuantifier.Abstractions.Tests.csproj index 71da271..b4b8496 100644 --- a/src/PullRequestQuantifier.Abstractions.Tests/PullRequestQuantifier.Abstractions.Tests.csproj +++ b/src/PullRequestQuantifier.Abstractions.Tests/PullRequestQuantifier.Abstractions.Tests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 false diff --git a/src/PullRequestQuantifier.Abstractions/PullRequestQuantifier.Abstractions.csproj b/src/PullRequestQuantifier.Abstractions/PullRequestQuantifier.Abstractions.csproj index 0a03abb..5f0c94b 100644 --- a/src/PullRequestQuantifier.Abstractions/PullRequestQuantifier.Abstractions.csproj +++ b/src/PullRequestQuantifier.Abstractions/PullRequestQuantifier.Abstractions.csproj @@ -10,9 +10,9 @@ - + - + diff --git a/src/PullRequestQuantifier.Common.Tests/PullRequestQuantifier.Common.Tests.csproj b/src/PullRequestQuantifier.Common.Tests/PullRequestQuantifier.Common.Tests.csproj index 06ceead..0badceb 100644 --- a/src/PullRequestQuantifier.Common.Tests/PullRequestQuantifier.Common.Tests.csproj +++ b/src/PullRequestQuantifier.Common.Tests/PullRequestQuantifier.Common.Tests.csproj @@ -1,13 +1,13 @@ - net7.0 + net8.0 true - - + + diff --git a/src/PullRequestQuantifier.Common/Extensions/FileSystemExtensions.cs b/src/PullRequestQuantifier.Common/Extensions/FileSystemExtensions.cs index 4909759..a901706 100644 --- a/src/PullRequestQuantifier.Common/Extensions/FileSystemExtensions.cs +++ b/src/PullRequestQuantifier.Common/Extensions/FileSystemExtensions.cs @@ -9,7 +9,7 @@ public static class FileSystemExtensions public static void DeleteDirectory(this IFileSystem fileSystem, string path) { #pragma warning disable CS0618 // Do not catch general exception types - var dirInfo = fileSystem.DirectoryInfo.FromDirectoryName(path); + var dirInfo = fileSystem.DirectoryInfo.New(path); #pragma warning restore CS0618 // Do not catch general exception types if (dirInfo.Exists) diff --git a/src/PullRequestQuantifier.Common/PullRequestQuantifier.Common.csproj b/src/PullRequestQuantifier.Common/PullRequestQuantifier.Common.csproj index f2e223f..2c75051 100644 --- a/src/PullRequestQuantifier.Common/PullRequestQuantifier.Common.csproj +++ b/src/PullRequestQuantifier.Common/PullRequestQuantifier.Common.csproj @@ -14,10 +14,10 @@ - + - + diff --git a/src/PullRequestQuantifier.Feedback.Service/PullRequestQuantifier.Feedback.Service.csproj b/src/PullRequestQuantifier.Feedback.Service/PullRequestQuantifier.Feedback.Service.csproj index 12fb3a9..0f7bebd 100644 --- a/src/PullRequestQuantifier.Feedback.Service/PullRequestQuantifier.Feedback.Service.csproj +++ b/src/PullRequestQuantifier.Feedback.Service/PullRequestQuantifier.Feedback.Service.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 true @@ -16,7 +16,7 @@ - + diff --git a/src/PullRequestQuantifier.GitEngine.Tests/PullRequestQuantifier.GitEngine.Tests.csproj b/src/PullRequestQuantifier.GitEngine.Tests/PullRequestQuantifier.GitEngine.Tests.csproj index 931e4a7..a59fef4 100644 --- a/src/PullRequestQuantifier.GitEngine.Tests/PullRequestQuantifier.GitEngine.Tests.csproj +++ b/src/PullRequestQuantifier.GitEngine.Tests/PullRequestQuantifier.GitEngine.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false diff --git a/src/PullRequestQuantifier.GitEngine/Helpers/Diff/GitCreateDiff.cs b/src/PullRequestQuantifier.GitEngine/Helpers/Diff/GitCreateDiff.cs index 6c91959..fb87d0e 100644 --- a/src/PullRequestQuantifier.GitEngine/Helpers/Diff/GitCreateDiff.cs +++ b/src/PullRequestQuantifier.GitEngine/Helpers/Diff/GitCreateDiff.cs @@ -76,7 +76,7 @@ private void Commit() private void DeleteRepoDirectory() { #pragma warning disable CS0618 // Type or member is obsolete - var dirInfo = fileSystem.DirectoryInfo.FromDirectoryName(repoPath); + var dirInfo = fileSystem.DirectoryInfo.New(repoPath); #pragma warning restore CS0618 // Type or member is obsolete if (dirInfo.Exists) { diff --git a/src/PullRequestQuantifier.GitEngine/PullRequestQuantifier.GitEngine.csproj b/src/PullRequestQuantifier.GitEngine/PullRequestQuantifier.GitEngine.csproj index 9c6e68a..2395977 100644 --- a/src/PullRequestQuantifier.GitEngine/PullRequestQuantifier.GitEngine.csproj +++ b/src/PullRequestQuantifier.GitEngine/PullRequestQuantifier.GitEngine.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/PullRequestQuantifier.Repository.Service/PullRequestQuantifier.Repository.Service.csproj b/src/PullRequestQuantifier.Repository.Service/PullRequestQuantifier.Repository.Service.csproj index cce5148..bf594bf 100644 --- a/src/PullRequestQuantifier.Repository.Service/PullRequestQuantifier.Repository.Service.csproj +++ b/src/PullRequestQuantifier.Repository.Service/PullRequestQuantifier.Repository.Service.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 true @@ -11,14 +11,14 @@ - + - - + + - + diff --git a/src/PullRequestQuantifier.Tests/PullRequestQuantifier.Tests.csproj b/src/PullRequestQuantifier.Tests/PullRequestQuantifier.Tests.csproj index 2dde1e3..880d169 100644 --- a/src/PullRequestQuantifier.Tests/PullRequestQuantifier.Tests.csproj +++ b/src/PullRequestQuantifier.Tests/PullRequestQuantifier.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 Latest true PullRequestQuantifier.Tests @@ -20,7 +20,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo/Program.cs b/src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo/Program.cs index 34c1484..c7670ba 100644 --- a/src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo/Program.cs +++ b/src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo/Program.cs @@ -34,14 +34,11 @@ private static async Task Clone( string pat) { var credentials = new NetworkCredential(userName, pat); - var cloneOptions = new CloneOptions + var cloneOptions = new CloneOptions(); + cloneOptions.FetchOptions.CredentialsProvider = (url, user, cred) => new SecureUsernamePasswordCredentials { - Checkout = true, - CredentialsProvider = (url, user, cred) => new SecureUsernamePasswordCredentials - { - Username = credentials.UserName, - Password = credentials.SecurePassword - } + Username = credentials.UserName, + Password = credentials.SecurePassword }; foreach (var organization in organizations) diff --git a/src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo/PullRequestQuantifier.Tools.CloneAdoRepo.csproj b/src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo/PullRequestQuantifier.Tools.CloneAdoRepo.csproj index 49f616c..8f6bd25 100644 --- a/src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo/PullRequestQuantifier.Tools.CloneAdoRepo.csproj +++ b/src/Tools/PullRequestQuantifier.Tools.CloneAdoRepo/PullRequestQuantifier.Tools.CloneAdoRepo.csproj @@ -2,14 +2,14 @@ Exe - net7.0 + net8.0 PullRequestQuantifier.Tools.CloneAdoRepo PullRequestQuantifier.Tools.CloneAdoRepo true - + diff --git a/src/Tools/PullRequestQuantifier.Tools.QuantifyRepositories/PullRequestQuantifier.Tools.QuantifyRepositories.csproj b/src/Tools/PullRequestQuantifier.Tools.QuantifyRepositories/PullRequestQuantifier.Tools.QuantifyRepositories.csproj index e4e7e2a..8a5f3cf 100644 --- a/src/Tools/PullRequestQuantifier.Tools.QuantifyRepositories/PullRequestQuantifier.Tools.QuantifyRepositories.csproj +++ b/src/Tools/PullRequestQuantifier.Tools.QuantifyRepositories/PullRequestQuantifier.Tools.QuantifyRepositories.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 true