Example #1
0
    public static async Task OnExecute(BuildContext context)
    {
        context.BuildStep("Analyzing source (if this fails, run './build FormatSource' to fix)");

        await context.Exec("dotnet", $"dotnet-format --check --folder --verbosity {context.Verbosity} --exclude src/xunit.v3.assert/Asserts");
    }
Example #2
0
    public static async Task OnExecute(BuildContext context)
    {
        context.BuildStep("Analyzing source");

        await context.Exec("dotnet", $"format --check --verbosity {context.Verbosity}");
    }
Example #3
0
    public static async Task OnExecute(BuildContext context)
    {
        context.BuildStep("Analyzing source");

        await context.Exec("dotnet", $"format -f --check --exclude src/xunit.v3.assert/Asserts --verbosity {context.Verbosity}");
    }
Example #4
0
    public static Task OnExecute(BuildContext context)
    {
        context.BuildStep("Restoring NuGet packages");

        return(context.Exec("dotnet", "restore"));
    }
Example #5
0
    public static async Task OnExecute(BuildContext context)
    {
        context.BuildStep("Compiling binaries");

        await context.Exec("dotnet", $"build --no-restore --configuration {context.ConfigurationText} --verbosity {context.Verbosity}");
    }
Example #6
0
    public static async Task OnExecute(BuildContext context)
    {
        context.BuildStep("Formatting source");

        await context.Exec("dotnet", $"dotnet-format --folder --exclude src/xunit.v3.assert/Asserts");
    }