зеркало из https://github.com/dotnet/razor.git
Merge pull request #8092 from davidwengier/WarningsAsErrors
This commit is contained in:
Коммит
b2d15be01c
|
@ -21,7 +21,7 @@
|
|||
<Nullable>enable</Nullable>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<TreatWarningsAsErrors Condition="'$(CI)' == 'true'">true</TreatWarningsAsErrors>
|
||||
<GenerateResxSource>true</GenerateResxSource>
|
||||
<GenerateResxSourceEmitFormatMethods>true</GenerateResxSourceEmitFormatMethods>
|
||||
<ExcludeFromSourceBuild Condition="'$(IsUnitTestProject)' == 'true'">true</ExcludeFromSourceBuild>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@echo off
|
||||
setlocal
|
||||
|
||||
set _args=-restore -build %*
|
||||
set _args=-restore -build /p:TreatWarningsAsErrors=true %*
|
||||
if "%~1"=="-?" set _args=-help
|
||||
|
||||
powershell -ExecutionPolicy ByPass -NoProfile -Command "& '%~dp0eng\common\build.ps1'" %_args%
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<IsPackable>true</IsPackable>
|
||||
<IsShipping>true</IsShipping>
|
||||
<IncludeSymbols>true</IncludeSymbols>
|
||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||
|
||||
<!-- In theory we want to have this property set, but our pipeline doesn't set the access tokens yet -->
|
||||
<PublishWindowsPdb Condition="'$(DotNetSymbolServerTokenMsdl)'!='' and '$(DotNetSymbolServerTokenSymWeb)'!=''">true</PublishWindowsPdb>
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
<EnableApiCheck>false</EnableApiCheck>
|
||||
<IsShippingPackage>false</IsShippingPackage>
|
||||
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
|
||||
<!--
|
||||
The NonCapturingTimer package is a source package, and the source files in there don't conform to our header
|
||||
poilcy, so we have to ignore that error code for this project.
|
||||
-->
|
||||
<NoWarn>$(NoWarn);IDE0073</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче