Skip to content

Commit

Permalink
Merge pull request #10 from BadMagic100/net8
Browse files Browse the repository at this point in the history
Support .NET 8
  • Loading branch information
homothetyhk authored Dec 17, 2023
2 parents d5c920c + 7add80a commit 0539952
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RandomizerCore/RandomizerCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AssemblyTitle>RandomizerCore</AssemblyTitle>
<AssemblyVersion>1.1.2.0</AssemblyVersion>
<FileVersion>1.1.2.0</FileVersion>
<TargetFrameworks>netstandard2.1;net472;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net472;net6.0;net8.0</TargetFrameworks>
<Deterministic>true</Deterministic>
<LangVersion>latest</LangVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
6 changes: 6 additions & 0 deletions RandomizerCore/StringParsing/Exceptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ public class TokenizingException : Exception
public TokenizingException() { }
public TokenizingException(string message) : base(message) { }
public TokenizingException(string message, Exception inner) : base(message, inner) { }

#if !NET8_0_OR_GREATER
protected TokenizingException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
#endif
}

[Serializable]
Expand All @@ -17,8 +20,11 @@ public class ParsingException : Exception
public ParsingException() { }
public ParsingException(string message) : base(message) { }
public ParsingException(string message, Exception inner) : base(message, inner) { }

#if !NET8_0_OR_GREATER
protected ParsingException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
#endif
}
}
2 changes: 1 addition & 1 deletion RandomizerCoreTests/RandomizerCoreTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net472;net6.0</TargetFrameworks>
<TargetFrameworks>net472;net6.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down

0 comments on commit 0539952

Please sign in to comment.