Skip to content

Commit

Permalink
(NuGet#9) Mark classes as serializable
Browse files Browse the repository at this point in the history
To help with the serializing and deserializing of the
LicensedChocolateyConfiguration class, we need to mark these classes
are serializable.
  • Loading branch information
gep13 committed Feb 3, 2023
1 parent 961b243 commit c17ee3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/NuGet.Core/NuGet.Versioning/NuGetVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace NuGet.Versioning
// Start - Chocolatey Specific Modification
//////////////////////////////////////////////////////////
[TypeConverter(typeof(NuGetVersionConverter))]
[Serializable]
//////////////////////////////////////////////////////////
// End - Chocolatey Specific Modification
//////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions src/NuGet.Core/NuGet.Versioning/SemanticVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace NuGet.Versioning
/// A strict SemVer implementation
/// </summary>
[TypeConverter(typeof(SemanticVersionConverter))]
[Serializable]
public partial class SemanticVersion
{
// store as array to avoid enumerator allocations
Expand Down

0 comments on commit c17ee3d

Please sign in to comment.