diff --git a/tools/build.cmd b/tools/build.cmd index 0142ab5..e8e2b52 100644 --- a/tools/build.cmd +++ b/tools/build.cmd @@ -23,14 +23,14 @@ if "%releaseconfig%" == "" set releaseconfig=Release :download echo Downloading packages... -"%ProgramFiles%\dotnet\dotnet.exe" restore "..\ChemiStar.sln" --configuration %releaseconfig% +"%ProgramFiles%\dotnet\dotnet.exe" restore "..\ChemiStar.sln" -p:Configuration=%releaseconfig% if %errorlevel% == 0 goto :build echo There was an error trying to download packages (%errorlevel%). goto :finished :build echo Building ChemiStar... -"%ProgramFiles%\dotnet\dotnet.exe" build "..\ChemiStar.sln" --configuration %releaseconfig% +"%ProgramFiles%\dotnet\dotnet.exe" build "..\ChemiStar.sln" -p:Configuration=%releaseconfig% if %errorlevel% == 0 goto :success echo There was an error trying to build (%errorlevel%). goto :finished diff --git a/tools/build.sh b/tools/build.sh index f07ecf5..f9d437f 100644 --- a/tools/build.sh +++ b/tools/build.sh @@ -32,7 +32,7 @@ fi # Download packages echo Downloading packages... -"$dotnetpath" restore "../ChemiStar.sln" --configuration $releaseconf +"$dotnetpath" restore "../ChemiStar.sln" -p:Configuration=$releaseconf if [ ! $? == 0 ]; then echo Download failed. exit 1 @@ -40,7 +40,7 @@ fi # Build echo Building ChemiStar... -"$dotnetpath" build "../ChemiStar.sln" --configuration $releaseconf +"$dotnetpath" build "../ChemiStar.sln" -p:Configuration=$releaseconf if [ ! $? == 0 ]; then echo Build failed. exit 1