Skip to content

Commit

Permalink
Fix build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
robertcoltheart committed Feb 17, 2021
1 parent b0c4a58 commit 4adf616
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if ($null -eq (Get-Command "dotnet" -ErrorAction Ignore)) {
Push-Location (Split-Path $MyInvocation.MyCommand.Definition)

try {
& dotnet run --project build --no-launch-profile -- $args
& dotnet run --project build --no-launch-profile --configuration Release -- $args
}
finally {
Pop-Location
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euo pipefail

if which dotnet > /dev/null; then
dotnet run --project build --no-launch-profile -- "$@"
dotnet run --project build --no-launch-profile --configuration Release -- "$@"
else
echo "error(1): Could not find 'dotnet', please install .NET SDK"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion build/build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Target("clean", () =>
{
Run("dotnet", "clean");
Run("dotnet", "clean --configuration Release");

if (Directory.Exists("artifacts"))
{
Expand Down
2 changes: 1 addition & 1 deletion src/Prefab/templates/prefab/build/build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Target("clean", () =>
{
Run("dotnet", "clean");
Run("dotnet", "clean --configuration Release");

if (Directory.Exists("artifacts"))
{
Expand Down

0 comments on commit 4adf616

Please sign in to comment.