Skip to content

Commit 2c9f0c8

Browse files
committed
Added bash and powershell scripts to build perform documentation build
1 parent 59d3b46 commit 2c9f0c8

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

build.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
$ErrorActionPreference = "Stop"
2+
3+
Write-Host "Building MonoGame Assemblies..."-ForegroundColor Green
4+
dotnet build external/MonoGame/MonoGame.Framework.Content.Pipeline/MonoGame.Framework.Content.Pipeline.csproj -p:DisableNativeBuild=true
5+
6+
Write-Host "Running DocFX..." -ForegroundColor Green
7+
dotnet docfx docfx.json
8+
9+
Write-Host "Build and documentation generation completed successfully!" -ForegroundColor Green

build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
echo "Building MonoGame Assemblies..."
6+
dotnet build external/MonoGame/MonoGame.Framework.Content.Pipeline/MonoGame.Framework.Content.Pipeline.csproj -p:DisableNativeBuild=true
7+
8+
echo "Running DocFX..."
9+
dotnet docfx docfx.json
10+
11+
echo "Build and documentation generation completed successfully!"

0 commit comments

Comments
 (0)