From 55b9c178b3fa39f2a1d0d9528329aad0ed8ee660 Mon Sep 17 00:00:00 2001 From: Nomads_Reach <144523850+NomadsReach@users.noreply.github.com> Date: Sun, 16 Aug 2026 02:38:52 -0400 Subject: [PATCH] Fix C# test restore in Windows build --- build.bat | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.bat b/build.bat index 19835dc..e9c7869 100644 --- a/build.bat +++ b/build.bat @@ -34,11 +34,10 @@ if "!QT6_PATH!"=="" ( ) echo Qt6: !QT6_PATH! -echo .NET: - dotnet --version +for /f "tokens=*" %%V in ('dotnet --version') do echo .NET: %%V dotnet build server\CommonwealthOnline.Server.csproj -c Release --nologo || exit /b 1 -dotnet run --project server\tests\CommonwealthOnline.Server.Tests.csproj -c Release --no-restore || exit /b 1 +dotnet run --project server\tests\CommonwealthOnline.Server.Tests.csproj -c Release || exit /b 1 if not exist build mkdir build pushd build @@ -49,7 +48,7 @@ popd echo. echo ================================================================================ echo Build successful - echo ================================================================================ +echo ================================================================================ echo Host GUI: build\bin\Release\CommonwealthOnlineHost.exe echo CMake also published and staged the self-contained C# server beside the host. echo Python is not required.