Skip to content

Commit

Permalink
Update actions/checkout@v4, actions/setup-dotnet@v4; add .NET 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thohng committed Mar 20, 2024
1 parent 6df1cd2 commit 7dc5874
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 72 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,25 @@ jobs:
name: ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET Core 8.0.x, 7.0.x and 6.0.x
uses: actions/setup-dotnet@v3
- name: Setup .NET 8.0.x, 7.0.x, 6.0.x and 5.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
5.0.x
6.0.x
7.0.x
8.0.x
- name: Setup .NET Core 9.0.x Preview
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
dotnet-quality: 'preview'

- name: dotnet info
run: dotnet --info

Expand Down
65 changes: 58 additions & 7 deletions Common.props
Original file line number Diff line number Diff line change
@@ -1,36 +1,87 @@
<Project>

<PropertyGroup>
<CurrentFrameworkVersion>6.0.25;7.0.14;8.0.0</CurrentFrameworkVersion>
<CurrentFrameworkVersion>6.0.28;7.0.17;8.0.3</CurrentFrameworkVersion>
<ImportedCommonProps>True</ImportedCommonProps>

<NET_ID>$([MSBuild]::GetTargetFrameworkIdentifier($(TargetFramework)))</NET_ID>
<NET_VER>$([MSBuild]::GetTargetFrameworkVersion($(TargetFramework)))</NET_VER>

<NET_STD_2_0>False</NET_STD_2_0>
<NET_STD_2_1>False</NET_STD_2_1>
<NET_STD_2_X>False</NET_STD_2_X>
<NET_3_1>False</NET_3_1>
<NET_5_0>False</NET_5_0>
<NET_5_0>False</NET_5_0>
<NET_6_0>False</NET_6_0>
<NET_7_0>False</NET_7_0>
<NET_8_0>False</NET_8_0>
<NET_9_0>False</NET_9_0>
<NET_10_0>False</NET_10_0>

<NET_STD_2_0 Condition="'$(NET_VER)' == '2.0' And '$(NET_ID)' == '.NETStandard'">True</NET_STD_2_0>
<NET_STD_2_1 Condition="'$(NET_VER)' == '2.1' And '$(NET_ID)' == '.NETStandard'">True</NET_STD_2_1>
<NET_STD_2_X Condition="'$(NET_VER)' &gt;= '2.0' And '$(NET_ID)' == '.NETStandard'">True</NET_STD_2_X>
<NET_3_1 Condition="'$(NET_VER)' == '3.1' And '$(NET_ID)' == '.NETCoreApp'">True</NET_3_1>
<NET_5_0 Condition="'$(NET_VER)' == '5.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_5_0>
<NET_6_0 Condition="'$(NET_VER)' == '6.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_6_0>
<NET_7_0 Condition="'$(NET_VER)' == '7.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_7_0>
<NET_8_0 Condition="'$(NET_VER)' == '8.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_8_0>
<NET_9_0 Condition="'$(NET_VER)' == '9.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_9_0>
<NET_10_0 Condition="'$(NET_VER)' == '10.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_10_0>

<NET_3_1_OR_LESS>False</NET_3_1_OR_LESS>
<NET_5_1_OR_LESS>False</NET_5_1_OR_LESS>
<NET_3_1_OR_LESS Condition="'$(NET_VER)' &lt;= '3.1' And ('$(NET_ID)' == '.NETCoreApp' Or '$(NET_ID)' == '.NETStandard')">True</NET_3_1_OR_LESS>
<NET_5_1_OR_LESS Condition="'$(NET_VER)' &lt;= '5.0' And ('$(NET_ID)' == '.NETCoreApp' Or '$(NET_ID)' == '.NETStandard')">True</NET_5_1_OR_LESS>
<NET_3_1_LESS>False</NET_3_1_LESS>
<NET_3_1_UP>False</NET_3_1_UP>
<NET_5_0_LESS>False</NET_5_0_LESS>
<NET_5_0_UP>False</NET_5_0_UP>
<NET_6_0_LESS>False</NET_6_0_LESS>
<NET_6_0_UP>False</NET_6_0_UP>
<NET_7_0_LESS>False</NET_7_0_LESS>
<NET_7_0_UP>False</NET_7_0_UP>
<NET_8_0_LESS>False</NET_8_0_LESS>
<NET_8_0_UP>False</NET_8_0_UP>
<NET_9_0_LESS>False</NET_9_0_LESS>
<NET_9_0_UP>False</NET_9_0_UP>
<NET_3_1_LESS Condition="'$(NET_VER)' &lt;= '3.1' And '$(NET_ID)' == '.NETCoreApp'">True</NET_3_1_LESS>
<NET_3_1_UP Condition="'$(NET_VER)' &gt;= '3.1' And '$(NET_ID)' == '.NETCoreApp'">True</NET_3_1_UP>
<NET_5_0_LESS Condition="'$(NET_VER)' &lt; '6.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_5_0_LESS>
<NET_5_0_UP Condition="'$(NET_VER)' &gt;= '5.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_5_0_UP>
<NET_6_0_LESS Condition="'$(NET_VER)' &lt; '7.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_6_0_LESS>
<NET_6_0_UP Condition="'$(NET_VER)' &gt;= '6.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_6_0_UP>
<NET_7_0_LESS Condition="'$(NET_VER)' &lt; '8.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_7_0_LESS>
<NET_7_0_UP Condition="'$(NET_VER)' &gt;= '7.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_7_0_UP>
<NET_8_0_LESS Condition="'$(NET_VER)' &lt;= '8.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_8_0_LESS>
<NET_8_0_UP Condition="'$(NET_VER)' &gt;= '8.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_8_0_UP>
<NET_9_0_LESS Condition="'$(NET_VER)' &lt;= '9.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_9_0_LESS>
<NET_9_0_UP Condition="'$(NET_VER)' &gt;= '9.0' And '$(NET_ID)' == '.NETCoreApp'">True</NET_9_0_UP>

<NET_3_1_LESS_OR_STD>False</NET_3_1_LESS_OR_STD>
<NET_3_1_UP_OR_STD>False</NET_3_1_UP_OR_STD>
<NET_5_0_LESS_OR_STD>False</NET_5_0_LESS_OR_STD>
<NET_5_0_UP_OR_STD>False</NET_5_0_UP_OR_STD>
<NET_6_0_LESS_OR_STD>False</NET_6_0_LESS_OR_STD>
<NET_6_0_UP_OR_STD>False</NET_6_0_UP_OR_STD>
<NET_7_0_LESS_OR_STD>False</NET_7_0_LESS_OR_STD>
<NET_7_0_UP_OR_STD>False</NET_7_0_UP_OR_STD>
<NET_8_0_LESS_OR_STD>False</NET_8_0_LESS_OR_STD>
<NET_8_0_UP_OR_STD>False</NET_8_0_UP_OR_STD>
<NET_9_0_LESS_OR_STD>False</NET_9_0_LESS_OR_STD>
<NET_9_0_UP_OR_STD>False</NET_9_0_UP_OR_STD>
<NET_3_1_LESS_OR_STD Condition="'$(NET_3_1_LESS)' == true Or '$(NET_STD_2_X)' == true">True</NET_3_1_LESS_OR_STD>
<NET_3_1_UP_OR_STD Condition="'$(NET_3_1_UP)' == true Or '$(NET_STD_2_X)' == true">True</NET_3_1_UP_OR_STD>
<NET_5_0_LESS_OR_STD Condition="'$(NET_5_0_LESS)' == true Or '$(NET_STD_2_X)' == true">True</NET_5_0_LESS_OR_STD>
<NET_5_0_UP_OR_STD Condition="'$(NET_5_0_UP)' == true Or '$(NET_STD_2_X)' == true">True</NET_5_0_UP_OR_STD>
<NET_6_0_LESS_OR_STD Condition="'$(NET_6_0_LESS)' == true Or '$(NET_STD_2_X)' == true">True</NET_6_0_LESS_OR_STD>
<NET_6_0_UP_OR_STD Condition="'$(NET_6_0_UP)' == true Or '$(NET_STD_2_X)' == true">True</NET_6_0_UP_OR_STD>
<NET_7_0_LESS_OR_STD Condition="'$(NET_7_0_LESS)' == true Or '$(NET_STD_2_X)' == true">True</NET_7_0_LESS_OR_STD>
<NET_7_0_UP_OR_STD Condition="'$(NET_7_0_UP)' == true Or '$(NET_STD_2_X)' == true">True</NET_7_0_UP_OR_STD>
<NET_8_0_LESS_OR_STD Condition="'$(NET_8_0_LESS)' == true Or '$(NET_STD_2_X)' == true">True</NET_8_0_LESS_OR_STD>
<NET_8_0_UP_OR_STD Condition="'$(NET_8_0_UP)' == true Or '$(NET_STD_2_X)' == true">True</NET_8_0_UP_OR_STD>
<NET_9_0_LESS_OR_STD Condition="'$(NET_9_0_LESS)' == true Or '$(NET_STD_2_X)' == true">True</NET_9_0_LESS_OR_STD>
<NET_9_0_UP_OR_STD Condition="'$(NET_9_0_UP)' == true Or '$(NET_STD_2_X)' == true">True</NET_9_0_UP_OR_STD>

</PropertyGroup>

<Import Project="$(MSBuildThisFileDirectory)Common.override.props" Condition="Exists('$(MSBuildThisFileDirectory)Common.override.props')" />

</Project>
Loading

0 comments on commit 7dc5874

Please sign in to comment.