Beispiel #1
0
        private string BuildMSBuild(string projectDirectory, string configuration = "Debug")
        {
            var result = new Build3Command()
                         .WithWorkingDirectory(projectDirectory)
                         .ExecuteWithCapturedOutput($"/p:Configuration={configuration}");

            result
            .Should()
            .Pass();

            return(result.StdOut);
        }
Beispiel #2
0
        private string BuildMSBuild(string projectDirectory, string projectName, string configuration = "Debug")
        {
            if (projectName != null)
            {
                projectName = projectName + ".csproj";
            }

            DeleteXproj(projectDirectory);

            var result = new Build3Command()
                         .WithWorkingDirectory(projectDirectory)
                         .ExecuteWithCapturedOutput($"{projectName} /p:Configuration={configuration}");

            result
            .Should().Pass();

            return(result.StdOut);
        }