Skip to content

Commit

Permalink
chg - Fixed msbuild arguments
Browse files Browse the repository at this point in the history
---

Type: chg
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Aug 22, 2024
1 parent 77af55f commit 37c3cf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ if "%buildoptions%" == "*=" set buildoptions=

:download
echo Downloading packages...
"%ProgramFiles%\dotnet\dotnet.exe" restore "..\Nitrocid.sln" --configuration %releaseconfig% %buildoptions%
"%ProgramFiles%\dotnet\dotnet.exe" restore "..\Nitrocid.sln" -p:Configuration=%releaseconfig% %buildoptions%
if %errorlevel% == 0 goto :build
echo There was an error trying to download packages (%errorlevel%).
goto :finished

:build
echo Building Nitrocid KS...
"%ProgramFiles%\dotnet\dotnet.exe" build "..\Nitrocid.sln" --configuration %releaseconfig% -maxCpuCount:1 %buildoptions%
"%ProgramFiles%\dotnet\dotnet.exe" build "..\Nitrocid.sln" -p:Configuration=%releaseconfig% -maxCpuCount:1 %buildoptions%
if %errorlevel% == 0 goto :success
echo There was an error trying to build (%errorlevel%).
goto :finished
Expand Down
4 changes: 2 additions & 2 deletions tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ fi

# Download packages
echo Downloading packages...
"$dotnetpath" restore "../Nitrocid.sln" --configuration $ksreleaseconf ${@:2}
"$dotnetpath" restore "../Nitrocid.sln" -p:Configuration=$ksreleaseconf ${@:2}
if [ ! $? == 0 ]; then
echo Download failed.
exit 1
fi

# Build KS
echo Building KS...
"$dotnetpath" build "../Nitrocid.sln" --configuration $ksreleaseconf -maxCpuCount:1 ${@:2}
"$dotnetpath" build "../Nitrocid.sln" -p:Configuration=$ksreleaseconf -maxCpuCount:1 ${@:2}
if [ ! $? == 0 ]; then
echo Build failed.
exit 1
Expand Down

0 comments on commit 37c3cf1

Please sign in to comment.