- ViaFerrea.sln con Core e Protocol (net10.0 + net8.0), Server, Tools, Tests - Directory.Build.props con versione unica e warning come errori - Script build/test/check-nuget/publish-image (+ build.ps1) - Documenti: GUIDA, GDD, ARCHITECTURE, PROTOCOL (bozza), STATE, ADR 0001 - Harness di test interno con i primi test su Rng (xoshiro256**) - Immagini di riferimento 01-05 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0191R7vXgtbAvSV4V8tj8uzL
26 lines
933 B
Bash
Executable File
26 lines
933 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Fallisce se un progetto .NET della soluzione contiene un PackageReference (regola: zero NuGet).
|
|
# Il client Godot è escluso: il suo SDK è l'unica dipendenza esterna ammessa.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
found=0
|
|
while IFS= read -r -d '' f; do
|
|
if grep -qiE '<PackageReference|<PackageVersion|<GlobalPackageReference' "$f"; then
|
|
echo "ERRORE: riferimento a pacchetto NuGet in $f" >&2
|
|
grep -niE '<PackageReference|<PackageVersion|<GlobalPackageReference' "$f" >&2
|
|
found=1
|
|
fi
|
|
done < <(find . \( -path ./client -o -path ./.git -o -name bin -o -name obj \) -prune -o \
|
|
\( -name '*.csproj' -o -name '*.props' -o -name '*.targets' \) -print0)
|
|
|
|
if [ -f packages.config ] || [ -f Directory.Packages.props ]; then
|
|
echo "ERRORE: gestione centralizzata dei pacchetti non ammessa" >&2
|
|
found=1
|
|
fi
|
|
|
|
if [ "$found" -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
echo "check-nuget: nessun pacchetto NuGet"
|