Debug version has revision number
MODIFY
WalletWasabi.Gui/CommandLine/CommandInterpreter.cs
WalletWasabi.Gui/CommandLine/CommandInterpreter.cs
@@ -70,7 +70,11 @@ namespace WalletWasabi.Gui.CommandLine
private static void ShowVersion()
{
- Console.WriteLine($"Wasabi Client Version: {Constants.ClientVersion}");
+#if RELEASE
+ Console.WriteLine($"Wasabi Client Version: {Constants.ClientVersion.ToString(3)}");
+#else
+ Console.WriteLine($"Wasabi Client Version: {Constants.ClientVersion.ToString(4)}");
+#endif
Console.WriteLine($"Compatible Coordinator Version: {Constants.BackendMajorVersion}");
}

MODIFY
WalletWasabi.Gui/Tabs/AboutViewModel.cs
WalletWasabi.Gui/Tabs/AboutViewModel.cs
@@ -34,7 +34,11 @@ namespace WalletWasabi.Gui.Tabs
public Version Version { get; }
- public string VersionText => $"v{Version}";
+#if RELEASE
+ public string VersionText => $"v{Version.ToString(3)}";
+#else
+ public string VersionText => $"v{Version.ToString(4)}";
+#endif
public string ClearnetLink => "https://wasabiwallet.io/";

MODIFY
WalletWasabi.Packager/Program.cs
WalletWasabi.Packager/Program.cs
@@ -52,7 +52,11 @@ namespace WalletWasabi.Packager
public static string WixProjectDirectory = Path.GetFullPath(Path.Combine(SolutionDirectory, "WalletWasabi.WindowsInstaller\\"));
public static string BinDistDirectory = Path.GetFullPath(Path.Combine(GuiProjectDirectory, "bin\\dist"));
+#if RELEASE
public static string VersionPrefix = Constants.ClientVersion.ToString();
+#else
+ public static string VersionPrefix = Constants.ClientVersion.ToString();
+#endif
public static bool OnlyBinaries;
public static bool OnlyCreateDigests;

MODIFY
WalletWasabi/Helpers/Constants.cs
WalletWasabi/Helpers/Constants.cs
@@ -7,13 +7,9 @@ namespace WalletWasabi.Helpers
{
public static class Constants
{
-#if RELEASE
- public static readonly Version ClientVersion = new Version(1, 1, 6);
-#else
- public static readonly Version ClientVersion = new Version(1, 1, 99);
-#endif
+ public static readonly Version ClientVersion = new Version(1, 1, 6, 99);
public const string BackendMajorVersion = "3";
- public static readonly VersionsResponse VersionsResponse = new VersionsResponse { ClientVersion = ClientVersion.ToString(), BackendMajorVersion = BackendMajorVersion };
+ public static readonly VersionsResponse VersionsResponse = new VersionsResponse { ClientVersion = ClientVersion.ToString(3), BackendMajorVersion = BackendMajorVersion };
public const uint ProtocolVersion_WITNESS_VERSION = 70012;

MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -753,7 +753,11 @@ namespace WalletWasabi.Services
{
ConnectCancellation = handshakeTimeout.Token,
IsRelay = false,
- UserAgent = $"/Wasabi:{Constants.ClientVersion}/"
+#if RELEASE
+ UserAgent = $"/Wasabi:{Constants.ClientVersion.ToString(3)}/"
+#else
+ UserAgent = $"/Wasabi:{Constants.ClientVersion.ToString(4)}/"
+#endif
};
// If an onion was added must try to use Tor.

Debug version has revision number