Skip to content

Commit 78571c9

Browse files
authored
Upgrade LightObjects to .NET 8/9/10 and LightResults 10.0.0 (#3)
* Upgrade frameworks and dependencies to v10 * Change target framework to netstandard2.0 * Set IsAotCompatible to true in LightObjects.csproj
1 parent e6637b1 commit 78571c9

6 files changed

Lines changed: 28 additions & 38 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@ jobs:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4
1919

20-
- name: Setup .NET 6.0
21-
uses: actions/setup-dotnet@v4
22-
with:
23-
dotnet-version: 6.x
24-
25-
- name: Setup .NET 7.0
26-
uses: actions/setup-dotnet@v4
27-
with:
28-
dotnet-version: 7.x
29-
3020
- name: Setup .NET 8.0
3121
uses: actions/setup-dotnet@v4
3222
with:
@@ -37,14 +27,19 @@ jobs:
3727
with:
3828
dotnet-version: 9.x
3929

30+
- name: Setup .NET 10.0
31+
uses: actions/setup-dotnet@v4
32+
with:
33+
dotnet-version: 10.x
34+
4035
- name: Restore dependencies
4136
run: dotnet restore
4237

4338
- name: Pack LightObjects
4439
run: |
4540
dotnet build ./src/LightObjects/LightObjects.csproj --configuration Release --no-restore
4641
dotnet pack ./src/LightObjects/LightObjects.csproj --configuration Release --no-build --output .
47-
42+
4843
- name: Pack LightObjects.Generated
4944
run: |
5045
dotnet build ./src/LightObjects.Generated/LightObjects.Generated.csproj --configuration Release --no-restore

.github/workflows/test.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ jobs:
2525
with:
2626
languages: 'csharp'
2727

28-
- name: Setup .NET 6.0
29-
uses: actions/setup-dotnet@v4
30-
with:
31-
dotnet-version: 6.x
32-
33-
- name: Setup .NET 7.0
34-
uses: actions/setup-dotnet@v4
35-
with:
36-
dotnet-version: 7.x
37-
3828
- name: Setup .NET 8.0
3929
uses: actions/setup-dotnet@v4
4030
with:
@@ -45,14 +35,19 @@ jobs:
4535
with:
4636
dotnet-version: 9.x
4737

38+
- name: Setup .NET 10.0
39+
uses: actions/setup-dotnet@v4
40+
with:
41+
dotnet-version: 10.x
42+
4843
- name: Restore dependencies
4944
run: dotnet restore
5045

5146
- name: Build
5247
run: dotnet build --configuration Release --no-restore
5348

5449
- name: Test
55-
run: dotnet test --configuration Release --no-build --verbosity normal --framework net8.0
50+
run: dotnet test --configuration Release --no-build --verbosity normal
5651

5752
- name: Perform CodeQL analysis
5853
uses: github/codeql-action/analyze@v3

src/LightObjects.Generated/LightObjects.Generated.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
<!-- Output -->
4242
<PropertyGroup>
4343
<AssemblyName>LightObjects.Generated</AssemblyName>
44-
<Version>9.0.0-preview.4</Version>
45-
<AssemblyVersion>9.0.0.0</AssemblyVersion>
46-
<FileVersion>9.0.0.0</FileVersion>
44+
<Version>10.0.0-preview.1</Version>
45+
<AssemblyVersion>10.0.0.0</AssemblyVersion>
46+
<FileVersion>10.0.0.0</FileVersion>
4747
<NeutralLanguage>en-US</NeutralLanguage>
4848
<IncludeBuildOutput>false</IncludeBuildOutput>
4949
</PropertyGroup>

src/LightObjects/LightObjects.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<!-- Compilation -->
44
<PropertyGroup>
55
<RootNamespace>LightObjects</RootNamespace>
6-
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
6+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99
<LangVersion>latest</LangVersion>
@@ -17,19 +17,19 @@
1717

1818
<!-- References -->
1919
<ItemGroup>
20-
<PackageReference Include="LightResults" Version="9.0.0" />
20+
<PackageReference Include="LightResults" Version="10.0.0" />
2121
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
2222
</ItemGroup>
2323

2424
<!-- Output -->
2525
<PropertyGroup>
2626
<AssemblyName>LightObjects</AssemblyName>
27-
<Version>9.0.0-preview.2</Version>
28-
<AssemblyVersion>9.0.0.0</AssemblyVersion>
29-
<FileVersion>9.0.0.0</FileVersion>
27+
<Version>10.0.0-preview.1</Version>
28+
<AssemblyVersion>10.0.0.0</AssemblyVersion>
29+
<FileVersion>10.0.0.0</FileVersion>
3030
<NeutralLanguage>en-US</NeutralLanguage>
3131
<Optimize>true</Optimize>
32-
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
32+
<IsAotCompatible>true</IsAotCompatible>
3333
<!--<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>-->
3434
</PropertyGroup>
3535

tests/LightObjects.Generated.Fixtures/LightObjects.Generated.Fixtures.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<LangVersion>latest</LangVersion>
@@ -14,17 +14,17 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="LightResults" Version="9.0.0" />
17+
<PackageReference Include="LightResults" Version="10.0.0" />
1818
</ItemGroup>
1919

2020
<ItemGroup>
2121
<ProjectReference Include="..\..\src\LightObjects.Generated\LightObjects.Generated.csproj"
2222
PrivateAssets="all"
2323
ReferenceOutputAssembly="false"
2424
OutputItemType="Analyzer"
25-
SetTargetFramework="TargetFramework=netstandard2.0"/>
25+
SetTargetFramework="TargetFramework=net8.0"/>
2626
</ItemGroup>
27-
27+
2828
<ItemGroup>
2929
<ProjectReference Include="..\..\src\LightObjects\LightObjects.csproj" />
3030
</ItemGroup>

tests/LightObjects.Generated.Tests/LightObjects.Generated.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<LangVersion>latest</LangVersion>

0 commit comments

Comments
 (0)