first commit

This commit is contained in:
lethanhsonvsp
2025-11-17 15:36:52 +07:00
commit 6f2eafa33c
14093 changed files with 1253472 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using System;
using System.Diagnostics;
namespace Unity.PlasticSCM.Editor.Tool
{
internal static class IsExeVersion
{
internal static bool GreaterOrEqual(string exePath, string minVersionString)
{
try
{
FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(exePath);
Version version = new Version(fileVersionInfo.FileVersion);
Version minVersion = new Version(minVersionString);
return (version >= minVersion);
}
catch (Exception)
{
return false;
}
}
}
}