Item: Build-DotNetCore (Module) #2
Modified: 1/13/2019 10:27 PM by inedo
##AH:UseTextMode
module Build-DotNetCore<$Configuration, $In = default, $OutputDirectory = default>
{
    set $srcPath = $WorkingDirectory;
    if $In != default
    {
        set $srcPath = $In;
    }
    
    set $args = "build --configuration $Configuration";
    if $OutputDirectory != default
    {
        set $args = '$args --output "$OutputDirectory"';
    }
    
    Exec
    (
        FileName: C:\Program Files\dotnet\dotnet.exe,
        Arguments: $args,
        WorkingDirectory: $srcPath,
        WarnRegex: \bwarning\b
    );
}