static Nuget() { #if MAC nugetPath = Path.Combine(Toolbox.GetApplicationDirectory(), "nuget.exe"); #else nugetPath = Path.Combine(Toolbox.GetApplicationDirectory(), "Toolchain.Win", "nuget.exe"); #endif #if MAC var chmodResult = Process.Start("chmod", $"+x {nugetPath}"); monoPath = Toolbox.GetMonoPath(); #endif }
static Nuget() { #if MAC nugetPath = Path.Combine(Toolbox.GetApplicationDirectory(), "nuget.exe"); #else nugetPath = Path.Combine(Toolbox.GetApplicationDirectory(), "Toolchain.Win", "nuget.exe"); #endif if (!File.Exists(nugetPath)) { nugetPath = Path.Combine(Toolbox.FindCitrusDirectory(), "Orange", "Toolchain.Win", "nuget.exe"); } if (!File.Exists(nugetPath)) { throw new InvalidOperationException($"Can't find nuget.exe."); } #if MAC monoPath = Toolbox.GetMonoPath(); #endif }
static Nuget() { #if MAC nugetPath = Path.Combine(Toolbox.GetApplicationDirectory(), "nuget.exe"); #else nugetPath = Path.Combine(Toolbox.GetApplicationDirectory(), "Toolchain.Win", "nuget.exe"); #endif if (!File.Exists(nugetPath)) { nugetPath = Path.Combine(Toolbox.CalcCitrusDirectory(), "Orange", "Toolchain.Win", "nuget.exe"); } if (!File.Exists(nugetPath)) { throw new InvalidOperationException($"Can't find nuget.exe."); } #if MAC var chmodResult = Process.Start("chmod", $"+x {nugetPath}"); monoPath = Toolbox.GetMonoPath(); #endif }