Update VersionOptions.cs (#5053)
When setting the VersionOptions with the TryParse function to LatestAndPublished, it sets IsLatestOrPublished to true instead of IsLatestAndPublished.
This commit is contained in:
parent
a4a05dcbf9
commit
e7766ce189
|
|
@ -31,7 +31,7 @@ public struct VersionOptions
|
|||
/// <summary>
|
||||
/// Gets the latest, published version.
|
||||
/// </summary>
|
||||
public static readonly VersionOptions LatestAndPublished = new() { IsLatestOrPublished = true };
|
||||
public static readonly VersionOptions LatestAndPublished = new() { IsLatestAndPublished = true };
|
||||
|
||||
/// <summary>
|
||||
/// Gets the draft version.
|
||||
|
|
@ -114,4 +114,4 @@ public struct VersionOptions
|
|||
/// Returns a simple string representation of this <see cref="VersionOptions"/>.
|
||||
/// </summary>
|
||||
public override string ToString() => AllVersions ? "AllVersions" : IsDraft ? "Draft" : IsLatest ? "Latest" : IsPublished ? "Published" : IsLatestOrPublished ? "LatestOrPublished" : IsLatestAndPublished ? "LatestAndPublished" : Version.ToString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue