Beispiel #1
0
        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
        }
Beispiel #2
0
		private static string GetToolPath(string tool)
		{
			var appDirectory = Toolbox.GetApplicationDirectory();
#if MAC
			var toolChainDirectory = Path.Combine(appDirectory, "Toolchain.Mac");
			if (!Directory.Exists(toolChainDirectory)) {
				toolChainDirectory = appDirectory;
			}
#else
			var toolChainDirectory = Path.Combine(appDirectory, "Toolchain.Win");
#endif
			var toolPath = Path.Combine(toolChainDirectory, tool);
#if MAC
			Process.Start("chmod", $"+x {toolPath}");
#endif
			return toolPath;
		}
Beispiel #3
0
        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
        }
Beispiel #4
0
        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
        }