diff --git a/Directory.Build.props b/Directory.Build.props
index 4b56ddd624..720b520913 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -7,7 +7,6 @@
true
7.3
true
- true
..
$(EngineRootPath)/bin
AnyCPU
diff --git a/Makefile b/Makefile
index 27794a2889..697f846628 100644
--- a/Makefile
+++ b/Makefile
@@ -97,11 +97,11 @@ clean:
check:
@echo
- @echo "Compiling in debug mode..."
+ @echo "Compiling in Debug mode..."
ifeq ($(RUNTIME), mono)
- @$(MSBUILD) -t:build -restore -p:Configuration=Debug -p:TargetPlatform=$(TARGETPLATFORM) -p:Mono=true
+ @$(MSBUILD) -t:build -restore -p:Configuration=Debug -warnaserror -p:TargetPlatform=$(TARGETPLATFORM) -p:Mono=true
else
- @$(DOTNET) build -c Debug -nologo -p:TargetPlatform=$(TARGETPLATFORM)
+ @$(DOTNET) build -c Debug -nologo -warnaserror -p:TargetPlatform=$(TARGETPLATFORM)
endif
ifeq ($(TARGETPLATFORM), unix-generic)
@./configure-system-libraries.sh
diff --git a/make.ps1 b/make.ps1
index 43818235c3..19efd3d84f 100644
--- a/make.ps1
+++ b/make.ps1
@@ -110,8 +110,8 @@ function Test-Command
function Check-Command
{
- Write-Host "Compiling in debug configuration..." -ForegroundColor Cyan
- dotnet build -c Debug --nologo -p:TargetPlatform=win-x64
+ Write-Host "Compiling in Debug configuration..." -ForegroundColor Cyan
+ dotnet build -c Debug --nologo -warnaserror -p:TargetPlatform=win-x64
if ($lastexitcode -ne 0)
{
Write-Host "Build failed." -ForegroundColor Red