Skip to content

Commit

Permalink
Add Obsolete attribute to serialization ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosavljevic committed Nov 6, 2023
1 parent b10ba99 commit 49ed7f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NuGet.Core/NuGet.Frameworks/FrameworkException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public FrameworkException(string message)
{
}

#if NET8_0_OR_GREATER
[Obsolete(DiagnosticId = "SYSLIB0051")] // add this attribute to the serialization ctor
#endif
protected FrameworkException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
Expand Down

0 comments on commit 49ed7f4

Please sign in to comment.