Files
LuaCsForBarotraumaEP/luacs-docs/lua/scripts/generate_docs.ps1
2022-08-14 18:03:56 -04:00

16 lines
348 B
PowerShell

Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
try {
Change-Location $PSScriptRoot/LuaDocsGenerator
if ((Get-Command "dotnet" -ErrorAction SilentlyContinue) -eq $null) {
echo "dotnet not found"
exit 1
}
dotnet build -clp:"ErrorsOnly;Summary"
dotnet run --no-build
} finally {
Restore-Location
}