Skip to content

Commit 71fa402

Browse files
Dotnet8 (#6)
* upgrade to dotnet 8 * version * update the workflows tests will fail next * closed xml next major version breaks our tests * fix git version
1 parent 31ac03f commit 71fa402

File tree

13 files changed

+37
-39
lines changed

13 files changed

+37
-39
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
- name: Install GitVersion
2525
uses: gittools/actions/gitversion/[email protected]
2626
with:
27-
versionSpec: "5.5.x"
27+
versionSpec: "5.8.x"
2828
- name: Setup .NET Core
29-
uses: actions/setup-dotnet@v1
29+
uses: actions/setup-dotnet@v2
3030
with:
31-
dotnet-version: "3.1.x"
31+
dotnet-version: "8.0.x"
3232
- name: Install dependencies
3333
run: dotnet restore src
3434
- name: Use GitVersion

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
- name: Install GitVersion
1717
uses: gittools/actions/gitversion/[email protected]
1818
with:
19-
versionSpec: "5.5.x"
19+
versionSpec: "5.8.x"
2020
- name: Setup .NET Core
21-
uses: actions/setup-dotnet@v1
21+
uses: actions/setup-dotnet@v2
2222
with:
23-
dotnet-version: "3.1.x"
23+
dotnet-version: "8.0.x"
2424
- name: Install dependencies
2525
run: dotnet restore src
2626
- name: Use GitVersion

GitVersion.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
next-version: 1.0.3
1+
next-version: 2.0.0
22
mode: Mainline
33
major-version-bump-message: '\+semver:\s?(breaking|major)'
44
minor-version-bump-message: '\+semver:\s?(feature|minor)'
55
patch-version-bump-message: '\+semver:\s?(fix|patch)'
66
no-bump-message: '\+semver:\s?(none|skip)'
7-
ignore:
8-
commits-before: 2023-01-01T00:00:00 # what is this for? should it be removed?
97

src/LittleBlocks.Excel.ClosedXml.IntegrationTests/Helpers/DatafileFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public IWorkbook GetWorkbook(string dataFile)
3737
private IWorkbook LoadWorkbook(string dataFile)
3838
{
3939
var datafilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Data", dataFile);
40-
var workbook = new XLWorkbook(GetMemoryStream(datafilePath), XLEventTracking.Disabled);
40+
var workbook = new XLWorkbook(GetMemoryStream(datafilePath));
4141
var fileName = Path.GetFileName(datafilePath);
4242
return new Workbook(workbook, fileName);
4343
}

src/LittleBlocks.Excel.ClosedXml.IntegrationTests/LittleBlocks.Excel.ClosedXml.IntegrationTests.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp3.1</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<IsPackable>false</IsPackable>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="LittleBlocks.Testing" Version="1.0.1" />
8-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.3" />
9-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
10-
<PackageReference Include="xunit" Version="2.4.2" />
11-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
7+
<PackageReference Include="LittleBlocks.Testing" Version="2.0.0" />
8+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
10+
<PackageReference Include="xunit" Version="2.7.0" />
11+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1414
</PackageReference>

src/LittleBlocks.Excel.ClosedXml/DataSheetCell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public Guid GetGuidMandatory()
112112
public object Value
113113
{
114114
get => _cell.Value;
115-
set => _cell.Value = value;
115+
set => _cell.Value = (XLCellValue)value;
116116
}
117117

118118
public bool IsEmpty()

src/LittleBlocks.Excel.ClosedXml/LittleBlocks.Excel.ClosedXml.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netstandard2.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
55
<Authors>Mohammad Moattar, Justin French, Aurimas Gecas</Authors>
66
<Company>ICG</Company>
77
<Description>LittleBlocks.Excel implementation based on ClosedXML API.</Description>
88
<RepositoryUrl>https://github.com/LittleBlocks/LittleBlocks.Excel</RepositoryUrl>
99
</PropertyGroup>
1010
<ItemGroup>
11-
<PackageReference Include="ClosedXML" Version="0.97.0" />
12-
<PackageReference Include="DocumentFormat.OpenXml" Version="2.19.0" />
13-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.3" />
14-
<PackageReference Include="System.Drawing.Common" Version="4.5.1" />
11+
<PackageReference Include="ClosedXML" Version="0.102.2" />
12+
<PackageReference Include="DocumentFormat.OpenXml" Version="2.20.0" />
13+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
14+
<PackageReference Include="System.Drawing.Common" Version="8.0.4" />
1515
</ItemGroup>
1616
<ItemGroup>
1717
<ProjectReference Include="..\LittleBlocks.Excel\LittleBlocks.Excel.csproj" />

src/LittleBlocks.Excel.ClosedXml/WorkbookLoader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public IWorkbook Load(string path)
4040
var fileName = Path.GetFileName(path);
4141
var stream = FileHelper.ReadFileToMemoryStream(path);
4242

43-
return new Workbook(new XLWorkbook(stream, XLEventTracking.Disabled), fileName);
43+
return new Workbook(new XLWorkbook(stream), fileName);
4444
}
4545
catch (FileFormatException ex)
4646
{
@@ -54,7 +54,7 @@ public IWorkbook Load(Stream stream)
5454
{
5555
if (stream == null) throw new ArgumentNullException(nameof(stream));
5656

57-
return new Workbook(new XLWorkbook(stream, XLEventTracking.Disabled));
57+
return new Workbook(new XLWorkbook(stream));
5858
}
5959
}
6060
}

src/LittleBlocks.Excel.Extensions/LittleBlocks.Excel.Extensions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netstandard2.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
55
<Authors>Justin French / Aurimas Gecas</Authors>
66
<Company>ICG</Company>
77
<Description>Extensions to register with ServiceCollection for Excel.</Description>
88
<RepositoryUrl>https://github.com/LittleBlocks/LittleBlocks.Excel</RepositoryUrl>
99
</PropertyGroup>
1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
11+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
1212
</ItemGroup>
1313
<ItemGroup>
1414
<ProjectReference Include="..\LittleBlocks.Excel.ClosedXml\LittleBlocks.Excel.ClosedXml.csproj" />

src/LittleBlocks.Excel.SampleApp/LittleBlocks.Excel.SampleApp.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.1" />
8-
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
9-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.14" />
7+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
8+
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
9+
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
1010
</ItemGroup>
1111
<ItemGroup>
1212
<ProjectReference Include="..\LittleBlocks.Excel.ClosedXml\LittleBlocks.Excel.ClosedXml.csproj" />

0 commit comments

Comments
 (0)