diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index d09b429..d22a1fc 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -30,9 +30,9 @@ stages: steps: - task: UseDotNet@2 - displayName: 'Use .NET 7' + displayName: 'Use .NET 8' inputs: - version: 7.x + version: 8.x - task: UseDotNet@2 displayName: 'Use .NET 6 (for code signing tasks)' @@ -90,7 +90,7 @@ stages: inputs: command: test projects: '$(Build.SourcesDirectory)\Microsoft.Kiota.Http.HttpClientLibrary.sln' - arguments: '--configuration $(BuildConfiguration) --no-build -f net7.0' + arguments: '--configuration $(BuildConfiguration) --no-build -f net8.0' # CredScan - task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3 diff --git a/.github/workflows/build-and_test.yml b/.github/workflows/build-and_test.yml index 000ca4f..ed8edfb 100644 --- a/.github/workflows/build-and_test.yml +++ b/.github/workflows/build-and_test.yml @@ -9,7 +9,7 @@ on: jobs: build-and-test: - runs-on: windows-latest # Temporary switch to windows till https://github.com/microsoft/vstest/issues/4549 is released in dotnet version after 7.0.400 + runs-on: ubuntu-latest env: solutionName: Microsoft.Kiota.Http.HttpClientLibrary.sln steps: @@ -17,7 +17,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3.0.3 with: - dotnet-version: 7.x + dotnet-version: 8.x - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 588532f..2e3942b 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -34,14 +34,12 @@ jobs: with: distribution: 'adopt' java-version: 17 - - name: Setup .NET 5 # At the moment the scanner requires dotnet 5 https://www.nuget.org/packages/dotnet-sonarscanner - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 5.0.x - name: Setup .NET uses: actions/setup-dotnet@v3 - with: - dotnet-version: 7.0.x + with: # At the moment the scanner requires dotnet 5 https://www.nuget.org/packages/dotnet-sonarscanner + dotnet-version: | + 5.x + 8.x - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis @@ -71,7 +69,7 @@ jobs: CoverletOutputFormat: 'opencover' # https://github.com/microsoft/vstest/issues/4014#issuecomment-1307913682 shell: pwsh run: | - ./.sonar/scanner/dotnet-sonarscanner begin /k:"microsoft_kiota-http-dotnet" /o:"microsoft" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="Microsoft.Kiota.Http.HttpClientLibrary.Tests/coverage.net7.0.opencover.xml" + ./.sonar/scanner/dotnet-sonarscanner begin /k:"microsoft_kiota-http-dotnet" /o:"microsoft" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="Microsoft.Kiota.Http.HttpClientLibrary.Tests/coverage.net8.0.opencover.xml" dotnet workload restore dotnet build dotnet test Microsoft.Kiota.Http.HttpClientLibrary.sln --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover diff --git a/CHANGELOG.md b/CHANGELOG.md index 44f17b7..bbec7d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.3.2] - 2023-11-15 + +### Added + +- Added support for dotnet 8. + ## [1.3.1] - 2023-11-10 ### Added diff --git a/Kiota.Generated/KiotaGenerated.csproj b/Kiota.Generated/KiotaGenerated.csproj index 85b22a9..5b19ee4 100644 --- a/Kiota.Generated/KiotaGenerated.csproj +++ b/Kiota.Generated/KiotaGenerated.csproj @@ -7,7 +7,7 @@ - + diff --git a/Microsoft.Kiota.Http.HttpClientLibrary.Tests/Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj b/Microsoft.Kiota.Http.HttpClientLibrary.Tests/Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj index fc100d1..aba1951 100644 --- a/Microsoft.Kiota.Http.HttpClientLibrary.Tests/Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj +++ b/Microsoft.Kiota.Http.HttpClientLibrary.Tests/Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj @@ -1,7 +1,7 @@ - net7.0;net462 + net8.0;net462 false latest Library diff --git a/src/Microsoft.Kiota.Http.HttpClientLibrary.csproj b/src/Microsoft.Kiota.Http.HttpClientLibrary.csproj index e61028a..b9cb3a5 100644 --- a/src/Microsoft.Kiota.Http.HttpClientLibrary.csproj +++ b/src/Microsoft.Kiota.Http.HttpClientLibrary.csproj @@ -14,7 +14,7 @@ https://aka.ms/kiota/docs true true - 1.3.1 + 1.3.2 true @@ -31,17 +31,18 @@ README.md latest enable - true true $(NoWarn);NU5048;NETSDK1138 + + true - - - + + +