Ejemplo n.º 1
0
        public static string BuildClassicProject(string csprojTarget, string rootDirectory, bool shouldFail = false, string[] environment = null)
        {
            SetEnvironment(rootDirectory);

            StringBuilder buildArgs = new StringBuilder();

            buildArgs.Append(" build ");
            buildArgs.Append(StringUtils.Quote(csprojTarget));

            return(ProcessInvoker.RunAndAssert("/Applications/Visual Studio.app/Contents/MacOS/vstool", buildArgs, "Compile", shouldFail, CreateMoreInfoFunction(csprojTarget), environment));
        }
Ejemplo n.º 2
0
        public static string BuildProject(string csprojTarget, string rootDirectory, bool shouldFail = false, bool release = false, string[] environment = null)
        {
            SetEnvironment(rootDirectory);

            StringBuilder buildArgs = new StringBuilder();

            buildArgs.Append(" /verbosity:diagnostic ");
            buildArgs.Append(" /property:XamarinMacFrameworkRoot=" + rootDirectory + "/Library/Frameworks/Xamarin.Mac.framework/Versions/Current ");

            buildArgs.Append($"/property:Configuration={(release ? "Release" : "Debug")} ");

            buildArgs.Append(StringUtils.Quote(csprojTarget));

            return(ProcessInvoker.RunAndAssert("/Library/Frameworks/Mono.framework/Commands/msbuild", buildArgs, "Compile", shouldFail, CreateMoreInfoFunction(csprojTarget), environment));
        }