Skip to content

Commit d9cf3b3

Browse files
committed
Update to .NET 10
1 parent 4d95e9f commit d9cf3b3

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup .NET
2020
uses: actions/setup-dotnet@v4
2121
with:
22-
dotnet-version: 8.0.x
22+
dotnet-version: 10.0.x
2323

2424
- name: Restore dependencies
2525
run: dotnet restore

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: 10.0.x
23+
1924
- name: Install GitVersion
2025
uses: gittools/actions/gitversion/setup@v3.1.11
2126
with:

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,16 @@ tap.Save(filePath);
3131
````
3232

3333
### Reading a TZX file
34+
35+
Using file path:
36+
```csharp
37+
var tzx = TzxFile.Load(filePath);
38+
tzx.Save(filePath);
39+
````
40+
41+
or from a stream:
42+
```csharp
43+
using var stream = File.OpenRead(fileName);
44+
var tzx = TzxFile.Load(stream);
45+
tzx.Save(filePath);
46+
````

src/Spectron.Files/Spectron.Files.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<AssemblyName>OldBit.Spectron.Files</AssemblyName>
88
<RootNamespace>OldBit.Spectron.Files</RootNamespace>
9-
<Version>0.9.2</Version>
9+
<Version>1.0.1</Version>
1010
<Title>ZX Spectrum emulator files parser</Title>
1111
<Authors>Wojciech Sobieszek</Authors>
1212
<Description>This package allows reading and writing files used by ZX Spectrum emulators such as TAP, TZX, SNA, SZX, POK and Z80.</Description>
@@ -17,6 +17,8 @@
1717
<PackageReadmeFile>README.md</PackageReadmeFile>
1818
<GenerateDocumentationFile>True</GenerateDocumentationFile>
1919
<PackageLicenseExpression>MIT</PackageLicenseExpression>
20+
<IncludeSymbols>true</IncludeSymbols>
21+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2022
</PropertyGroup>
2123

2224
<ItemGroup>

tests/Spectron.Files.Tests/Spectron.Files.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+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

0 commit comments

Comments
 (0)