From e620f4505099941064923af8283424cb23ad362e Mon Sep 17 00:00:00 2001 From: Tyrie Vella Date: Wed, 4 Mar 2026 10:36:40 -0800 Subject: [PATCH] Relax IsDevelopmentVersion to accept any major version 0 The previous check required exactly version 0.2.173.2, which is the hard-coded default in Version.props. Relax this to treat any version with major version 0 as a development build. This is useful when working with Copilot to build and install local versions, as it allows Copilot to detect whether the currently installed version matches its latest build by comparing version strings, without needing to use the one specific hard-coded version number. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- GVFS/GVFS.Common/ProcessHelper.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GVFS/GVFS.Common/ProcessHelper.cs b/GVFS/GVFS.Common/ProcessHelper.cs index 4fa57fbaf..3d7e35463 100644 --- a/GVFS/GVFS.Common/ProcessHelper.cs +++ b/GVFS/GVFS.Common/ProcessHelper.cs @@ -57,8 +57,10 @@ public static string GetCurrentProcessVersion() public static bool IsDevelopmentVersion() { + // Official CI builds use version numbers where major > 0. + // Development builds always start with 0. string version = ProcessHelper.GetCurrentProcessVersion(); - return version.Equals("0.2.173.2") || version.StartsWith("0.2.173.2+"); + return version.StartsWith("0."); } public static string GetProgramLocation(string programLocaterCommand, string processName)