From a8cc3636995c9fc5eb08fa9d42129a05d79bb666 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 18 Dec 2016 16:58:47 -0500 Subject: fix legacy version wrapper not implementing ToString method (#197) --- src/StardewModdingAPI/Version.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/StardewModdingAPI/Version.cs') diff --git a/src/StardewModdingAPI/Version.cs b/src/StardewModdingAPI/Version.cs index 9c13381a..87cd4f3d 100644 --- a/src/StardewModdingAPI/Version.cs +++ b/src/StardewModdingAPI/Version.cs @@ -85,6 +85,11 @@ namespace StardewModdingAPI return this.GetSemanticVersion().IsNewerThan(other); } + /// Get a string representation of the version. + public override string ToString() + { + return this.GetSemanticVersion().ToString(); + } /********* ** Private methods -- cgit