Example #1
0
 public static string GetExecutableArgs(string args)
 {
     if (RuntimeHelper.IsCoreClr())
     {
         args = $"{Path.Combine(GetExeDirectory(), "gitversion.dll")} {args}";
     }
     return(args);
 }
Example #2
0
 public static string GetExecutable()
 {
     return(RuntimeHelper.IsCoreClr() ? "dotnet" : Path.Combine(GetExeDirectory(), "gitversion.exe"));
 }