Skip to content

Commit

Permalink
Add a .Net 8.0 target.
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenGroot committed Nov 29, 2023
1 parent c4ca11e commit 294485f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Ookii.CommandLine/CommandLineArgumentException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public CommandLineArgumentException(string? message, string? argumentName, Comma
/// <summary>
/// Initializes a new instance of the <see cref="CommandLineArgumentException"/> class with serialized data.
/// </summary>
#if NET8_0_OR_GREATER
[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
#endif
protected CommandLineArgumentException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
Expand Down Expand Up @@ -154,6 +157,9 @@ public CommandLineArgumentErrorCategory Category
/// <exception cref="ArgumentNullException"><paramref name="info"/> is <see langword="null"/>.</exception>
#if !NET6_0_OR_GREATER
[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
#endif
#if NET8_0_OR_GREATER
[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
#endif
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Ookii.CommandLine/Ookii.CommandLine.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net6.0;netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6.0;netstandard2.0;netstandard2.1</TargetFrameworks>
<Nullable>enable</Nullable>
<LangVersion>11.0</LangVersion>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
Expand Down

0 comments on commit 294485f

Please sign in to comment.