Disable Stylecop on debug config

This commit is contained in:
teinarss
2021-09-17 19:05:36 +02:00
committed by abcdefg30
parent defaf92752
commit 279e7eb1c9
3 changed files with 5 additions and 6 deletions

View File

@@ -7,7 +7,6 @@
<Optimize>true</Optimize> <Optimize>true</Optimize>
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EngineRootPath Condition="'$(EngineRootPath)' == ''">..</EngineRootPath> <EngineRootPath Condition="'$(EngineRootPath)' == ''">..</EngineRootPath>
<OutputPath>$(EngineRootPath)/bin</OutputPath> <OutputPath>$(EngineRootPath)/bin</OutputPath>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>

View File

@@ -97,11 +97,11 @@ clean:
check: check:
@echo @echo
@echo "Compiling in debug mode..." @echo "Compiling in Debug mode..."
ifeq ($(RUNTIME), mono) 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 else
@$(DOTNET) build -c Debug -nologo -p:TargetPlatform=$(TARGETPLATFORM) @$(DOTNET) build -c Debug -nologo -warnaserror -p:TargetPlatform=$(TARGETPLATFORM)
endif endif
ifeq ($(TARGETPLATFORM), unix-generic) ifeq ($(TARGETPLATFORM), unix-generic)
@./configure-system-libraries.sh @./configure-system-libraries.sh

View File

@@ -110,8 +110,8 @@ function Test-Command
function Check-Command function Check-Command
{ {
Write-Host "Compiling in debug configuration..." -ForegroundColor Cyan Write-Host "Compiling in Debug configuration..." -ForegroundColor Cyan
dotnet build -c Debug --nologo -p:TargetPlatform=win-x64 dotnet build -c Debug --nologo -warnaserror -p:TargetPlatform=win-x64
if ($lastexitcode -ne 0) if ($lastexitcode -ne 0)
{ {
Write-Host "Build failed." -ForegroundColor Red Write-Host "Build failed." -ForegroundColor Red