Added extra output to make.ps1
This commit is contained in:
parent
038ad57e84
commit
4ceb3fe31b
10
make.ps1
10
make.ps1
@ -16,7 +16,7 @@ function All-Command
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Building in" $configuration "configuration..." -ForegroundColor Cyan
|
Write-Host "Building $modID in" $configuration "configuration..." -ForegroundColor Cyan
|
||||||
dotnet build -c $configuration --nologo -p:TargetPlatform=win-x64
|
dotnet build -c $configuration --nologo -p:TargetPlatform=win-x64
|
||||||
|
|
||||||
if ($lastexitcode -ne 0)
|
if ($lastexitcode -ne 0)
|
||||||
@ -42,6 +42,8 @@ function Clean-Command
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Host "Cleaning $modID..." -ForegroundColor Cyan
|
||||||
|
|
||||||
dotnet clean /nologo
|
dotnet clean /nologo
|
||||||
Remove-Item ./*/obj -Recurse -ErrorAction Ignore
|
Remove-Item ./*/obj -Recurse -ErrorAction Ignore
|
||||||
Remove-Item env:ENGINE_DIRECTORY/bin -Recurse -ErrorAction Ignore
|
Remove-Item env:ENGINE_DIRECTORY/bin -Recurse -ErrorAction Ignore
|
||||||
@ -114,7 +116,7 @@ function Check-Command
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Compiling in Debug configuration..." -ForegroundColor Cyan
|
Write-Host "Compiling $modID in Debug configuration..." -ForegroundColor Cyan
|
||||||
|
|
||||||
# Enabling EnforceCodeStyleInBuild and GenerateDocumentationFile as a workaround for some code style rules (in particular IDE0005) being bugged and not reporting warnings/errors otherwise.
|
# Enabling EnforceCodeStyleInBuild and GenerateDocumentationFile as a workaround for some code style rules (in particular IDE0005) being bugged and not reporting warnings/errors otherwise.
|
||||||
dotnet build -c Debug --nologo -warnaserror -p:TargetPlatform=win-x64 -p:EnforceCodeStyleInBuild=true -p:GenerateDocumentationFile=true
|
dotnet build -c Debug --nologo -warnaserror -p:TargetPlatform=win-x64 -p:EnforceCodeStyleInBuild=true -p:GenerateDocumentationFile=true
|
||||||
@ -125,10 +127,10 @@ function Check-Command
|
|||||||
|
|
||||||
if ((CheckForUtility) -eq 0)
|
if ((CheckForUtility) -eq 0)
|
||||||
{
|
{
|
||||||
Write-Host "Checking for explicit interface violations..." -ForegroundColor Cyan
|
Write-Host "Checking $modID for explicit interface violations..." -ForegroundColor Cyan
|
||||||
InvokeCommand "$utilityPath $modID --check-explicit-interfaces"
|
InvokeCommand "$utilityPath $modID --check-explicit-interfaces"
|
||||||
|
|
||||||
Write-Host "Checking for incorrect conditional trait interface overrides..." -ForegroundColor Cyan
|
Write-Host "Checking $modID for incorrect conditional trait interface overrides..." -ForegroundColor Cyan
|
||||||
InvokeCommand "$utilityPath $modID --check-conditional-trait-interface-overrides"
|
InvokeCommand "$utilityPath $modID --check-conditional-trait-interface-overrides"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user