2025-08-18 18:40:50 +02:00
|
|
|
Set-Location "$PSScriptRoot/.."
|
|
|
|
|
|
|
|
|
|
$env:ASPNETCORE_ENVIRONMENT = "Development"
|
|
|
|
|
$env:swaggerGen = "True"
|
|
|
|
|
$env:DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX = "2"
|
|
|
|
|
$env:GLOBALSETTINGS__SQLSERVER__CONNECTIONSTRING = "placeholder"
|
|
|
|
|
|
|
|
|
|
dotnet tool restore
|
|
|
|
|
|
|
|
|
|
# Identity
|
|
|
|
|
Set-Location "./src/Identity"
|
|
|
|
|
dotnet build
|
|
|
|
|
dotnet swagger tofile --output "../../identity.json" --host "https://identity.bitwarden.com" "./bin/Debug/net8.0/Identity.dll" "v1"
|
2025-09-02 18:30:53 +02:00
|
|
|
if ($LASTEXITCODE -ne 0) {
|
|
|
|
|
exit $LASTEXITCODE
|
|
|
|
|
}
|
2025-08-18 18:40:50 +02:00
|
|
|
|
|
|
|
|
# Api internal & public
|
|
|
|
|
Set-Location "../../src/Api"
|
|
|
|
|
dotnet build
|
2025-12-03 09:20:56 +10:00
|
|
|
dotnet swagger tofile --output "../../api.json" "./bin/Debug/net8.0/Api.dll" "internal"
|
2025-09-02 18:30:53 +02:00
|
|
|
if ($LASTEXITCODE -ne 0) {
|
|
|
|
|
exit $LASTEXITCODE
|
|
|
|
|
}
|
2025-12-03 09:20:56 +10:00
|
|
|
dotnet swagger tofile --output "../../api.public.json" "./bin/Debug/net8.0/Api.dll" "public"
|
2025-09-02 18:30:53 +02:00
|
|
|
if ($LASTEXITCODE -ne 0) {
|
|
|
|
|
exit $LASTEXITCODE
|
|
|
|
|
}
|