Skip to content

Commit

Permalink
[v2] Add .NET 9 Preview as target
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikfroehling committed Aug 24, 2024
1 parent d3fd488 commit 786c278
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
6 changes: 2 additions & 4 deletions .github/constants.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
DOTNET_VERSION: '8.0.x'
DOTNET_QUALITY: 'ga'
JAVA_DISTRIBUTION: 'temurin'
JAVA_VERSION: '21'
DOTNET_VERSION_STABLE: '8.0.x'
DOTNET_VERSION_PREVIEW: '9.0.100-preview.7.24407.12'
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: ${{ env.DOTNET_QUALITY }}
cache: true
cache-dependency-path: '**/packages.lock.json'
dotnet-version: |
${{ env.DOTNET_VERSION_STABLE }}
${{ env.DOTNET_VERSION_PREVIEW }}
- name: Restore dependencies
run: dotnet restore
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: ${{ env.DOTNET_QUALITY }}
cache: true
cache-dependency-path: '**/packages.lock.json'
dotnet-version: |
${{ env.DOTNET_VERSION_STABLE }}
${{ env.DOTNET_VERSION_PREVIEW }}
- name: Setup DocFX
run: dotnet tool update -g docfx
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: ${{ env.DOTNET_QUALITY }}
cache: true
cache-dependency-path: '**/packages.lock.json'
dotnet-version: |
${{ env.DOTNET_VERSION_STABLE }}
${{ env.DOTNET_VERSION_PREVIEW }}
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
Expand Down
7 changes: 4 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
<LibraryNETFrameworkTargets>net472;net481</LibraryNETFrameworkTargets>
<LibraryNETStandardTargets>netstandard2.0;netstandard2.1</LibraryNETStandardTargets>
<LibraryCommonNETTargets>net6.0;net7.0;net8.0</LibraryCommonNETTargets>
<LibraryCommonNETPreviewTargets>net9.0</LibraryCommonNETPreviewTargets>

<LibraryTargetFrameworks>$(LibraryNETStandardTargets);net5.0;$(LibraryCommonNETTargets)</LibraryTargetFrameworks>
<HttpClientFactoryLibraryTargetFrameworks>$(LibraryNETStandardTargets);$(LibraryCommonNETTargets)</HttpClientFactoryLibraryTargetFrameworks>
<TestTargetFrameworks>$(LibraryNETFrameworkTargets);$(LibraryCommonNETTargets)</TestTargetFrameworks>
<LibraryTargetFrameworks>$(LibraryNETStandardTargets);net5.0;$(LibraryCommonNETTargets);$(LibraryCommonNETPreviewTargets)</LibraryTargetFrameworks>
<HttpClientFactoryLibraryTargetFrameworks>$(LibraryNETStandardTargets);$(LibraryCommonNETTargets);$(LibraryCommonNETPreviewTargets)</HttpClientFactoryLibraryTargetFrameworks>
<TestTargetFrameworks>$(LibraryNETFrameworkTargets);$(LibraryCommonNETTargets);$(LibraryCommonNETPreviewTargets)</TestTargetFrameworks>

<!-- These tests use Verify packages which only support these .NET versions >= 6. -->
<SourceGenerationTestTargetFrameworks>$(LibraryCommonNETTargets)</SourceGenerationTestTargetFrameworks>
Expand Down

0 comments on commit 786c278

Please sign in to comment.