Skip to content

Commit e620f45

Browse files
tyrielvCopilot
andcommitted
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>
1 parent f44d708 commit e620f45

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

GVFS/GVFS.Common/ProcessHelper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ public static string GetCurrentProcessVersion()
5757

5858
public static bool IsDevelopmentVersion()
5959
{
60+
// Official CI builds use version numbers where major > 0.
61+
// Development builds always start with 0.
6062
string version = ProcessHelper.GetCurrentProcessVersion();
61-
return version.Equals("0.2.173.2") || version.StartsWith("0.2.173.2+");
63+
return version.StartsWith("0.");
6264
}
6365

6466
public static string GetProgramLocation(string programLocaterCommand, string processName)

0 commit comments

Comments
 (0)