Skip to content

Commit

Permalink
bump: .net 8
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshKeegan committed Nov 16, 2023
1 parent 6197679 commit 09859ec
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
ci_build:
name: CI Build
runs-on: ubuntu-latest
container: joshkeegan/dotnet-mixed-build:6.1
container: joshkeegan/dotnet-mixed-build:7.0
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net48</TargetFrameworks>
<TargetFrameworks>net8.0;net48</TargetFrameworks>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions test/UnitTests/Exceptions/SkipTestExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public void Serialisation_RoundTrip_RetainsData()

// Act
SkipTestException actual;
#pragma warning disable SYSLIB0011 // Type or member is obsolete
#pragma warning disable 618
BinaryFormatter formatter = new BinaryFormatter();
using (MemoryStream s = new MemoryStream())
{
#pragma warning disable SYSLIB0011 // Type or member is obsolete
#pragma warning disable 618
formatter.Serialize(s, expected);
s.Position = 0;
actual = (SkipTestException) formatter.Deserialize(s);
Expand Down
7 changes: 6 additions & 1 deletion test/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net48</TargetFrameworks>
<TargetFrameworks>net8.0;net48</TargetFrameworks>

<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>

<!-- Required to enable BinaryFormatter so we can test [Serializable] exceptions.
I don't know if anyone uses them, but it would be a breaking change to stop exceptions being serialisable,
and the BinaryFormatter is only required in this test project. -->
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 09859ec

Please sign in to comment.