void RunDotNetBuild()

in scripts/cake/msbuild.cake [118:165]


void RunDotNetBuild(
    FilePath solution,
    string[] targets = null,
    string configuration = null,
    string platform = null,
    Dictionary<string, string> properties = null)
{
    EnsureDirectoryExists(OUTPUT_NUGETS_PATH);

    var c = new DotNetBuildSettings();
    var msb = new DotNetMSBuildSettings();
    c.MSBuildSettings = msb;

    c.Configuration = configuration ?? CONFIGURATION;
    c.Verbosity = DotNetVerbosity.Minimal;

    var relativeSolution = MakeAbsolute(ROOT_PATH).GetRelativePath(MakeAbsolute(solution));
    var blPath = ROOT_PATH.Combine("output/logs/binlogs").CombineWithFilePath(relativeSolution + ".binlog");
    msb.BinaryLogger = new MSBuildBinaryLoggerSettings {
        Enabled = true,
        FileName = blPath.FullPath,
    };

    if (targets?.Length > 0) {
        msb.Targets.Clear();
        foreach (var target in targets) {
            msb.Targets.Add(target);
        }
    }

    if (!string.IsNullOrEmpty(platform)) {
        msb.Properties ["Platform"] = new [] { $"\"{platform}\"" };
    }

    msb.Properties ["RestoreNoCache"] = new [] { "true" };
    msb.Properties ["RestorePackagesPath"] = new [] { PACKAGE_CACHE_PATH.FullPath };

    if (properties != null) {
        foreach (var prop in properties) {
            if (!string.IsNullOrEmpty(prop.Value)) {
                msb.Properties [prop.Key] = new [] { prop.Value };
            }
        }
    }
    c.Sources = GetNuGetSources();
    
    DotNetBuild(solution.FullPath, c);
}