- Remove BuildType parameter as we can default it from package properties - Stop passing BuildType and GroupId and instead defaul them from package properties - Enable StrictMode to help identify potential errors - Start passing sdktype and isnewsdk properties to devops script - Sync latest changes with devops work item to fix a couple bugs Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
38 lines
534 B
PowerShell
38 lines
534 B
PowerShell
$isDevOpsRun = ($null -ne $env:SYSTEM_TEAMPROJECTID)
|
|
|
|
function LogWarning
|
|
{
|
|
if ($isDevOpsRun)
|
|
{
|
|
Write-Host "##vso[task.LogIssue type=warning;]$args"
|
|
}
|
|
else
|
|
{
|
|
Write-Warning "$args"
|
|
}
|
|
}
|
|
|
|
function LogError
|
|
{
|
|
if ($isDevOpsRun)
|
|
{
|
|
Write-Host "##vso[task.LogIssue type=error;]$args"
|
|
}
|
|
else
|
|
{
|
|
Write-Error "$args"
|
|
}
|
|
}
|
|
|
|
function LogDebug
|
|
{
|
|
if ($isDevOpsRun)
|
|
{
|
|
Write-Host "[debug]$args"
|
|
}
|
|
else
|
|
{
|
|
Write-Debug "$args"
|
|
}
|
|
}
|