Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Bunting <6431421+dougbu@users.noreply.github.com>2020-06-19 01:59:34 +0300
committerGitHub <noreply@github.com>2020-06-19 01:59:34 +0300
commitab7f3f2018379994c3f14cc93addc1aae06b6c5f (patch)
treea97b76df61ae3d00d3ca313a51cad581b7f6e4d3 /Directory.Build.props
parent860f402fee67763d4f4e6c54a7596629a47ca868 (diff)
Enable `/warnAsError` (#23072)
* Enable `/warnAsError` in Windows builds - already enabled in non-Windows builds because override existed only in build.ps1 * Allow some warnings related to closed issues - common `<NoWarn>$(NoWarn);CS1591</NoWarn>` case unchanged - /Directory.Build.props ensures that warning remains a warning but doesn't hide it * !fixup! Root build.sh _does_ disable warnings as errors - variable eng/common/tools.sh uses named `warn_as_error`
Diffstat (limited to 'Directory.Build.props')
-rw-r--r--Directory.Build.props17
1 files changed, 7 insertions, 10 deletions
diff --git a/Directory.Build.props b/Directory.Build.props
index d901404a13..4b42f630ad 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -36,7 +36,7 @@
<!-- Workaround issue with ComponentsAnalyzer throwing for interfaces -->
<DisableImplicitComponentsAnalyzers>true</DisableImplicitComponentsAnalyzers>
</PropertyGroup>
-
+
<!-- Disable logging of some task parameters or metadata to reduce binlog size.
Reenable logging of any particular item by changing the value of the property below to 'false'
The format is as follows:
@@ -48,22 +48,22 @@
<!-- ItemsToHash is used for incremental building and hashes input properties to a file
This is not generally useful for day-to-day build debugging. -->
<DisableLogTaskParameter_Hash_ItemsToHash>$(TrimTaskParameters)</DisableLogTaskParameter_Hash_ItemsToHash>
-
+
<!-- JoinItems takes input ItemGroups. The output ItemGroup is logged. -->
<DisableLogTaskParameter_JoinItems_Right>$(TrimTaskParameters)</DisableLogTaskParameter_JoinItems_Right>
<DisableLogTaskParameter_JoinItems_Left>$(TrimTaskParameters)</DisableLogTaskParameter_JoinItems_Left>
-
+
<!-- ConvertToAbsolutePaths - The output parameter (AbsolutePaths) is interesting
while the input Path is not generally useful. The output itemgroup's metadata
is not altered by the task. -->
<DisableLogTaskParameter_ConvertToAbsolutePath_Paths>$(TrimTaskParameters)</DisableLogTaskParameter_ConvertToAbsolutePath_Paths>
<DisableLogTaskParameterItemMetadata_ConvertToAbsolutePath_Paths>$(TrimTaskParameters)</DisableLogTaskParameterItemMetadata_ConvertToAbsolutePath_Paths>
-
+
<!-- The standard msbuild Copy task does not use Metadata and thus the input/outputs
item metadata is not relevant -->
<DisableLogTaskParameterItemMetadata_Copy_SourceFiles>$(TrimTaskParameters)</DisableLogTaskParameterItemMetadata_Copy_SourceFiles>
<DisableLogTaskParameterItemMetadata_Copy_DestinationFiles>$(TrimTaskParameters)</DisableLogTaskParameterItemMetadata_Copy_DestinationFiles>
-
+
<!-- Reference metadata for GenerateDepsFile, Csc, RAR, etc. are sometimes useful, but extraordinarily large
when building against a shared framework where the number of input assemblies is very large.
Avoid logging these by default. -->
@@ -101,14 +101,11 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- Don't make missing XML docs a fatal build error, but still surface so we have visibility into undocumented APIs. -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS1591</WarningsNotAsErrors>
+
<!-- xUnit1004 = warns about skipped tests. Make this a non-fatal build warning. -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);xUnit1004</WarningsNotAsErrors>
- <!-- Working around https://github.com/NuGet/Home/issues/8467 -->
- <NoWarn>$(NoWarn);NU5131</NoWarn>
- <!-- Needed until we resolve https://github.com/dotnet/aspnetcore-internal/issues/3103 -->
- <NoWarn>$(NoWarn);NU5048</NoWarn>
- <!-- TODO: Figure out why these warnings are occuring -->
+ <!-- Ignore specific Roslyn warnings for now, https://github.com/dotnet/aspnetcore/issues/22090 -->
<NoWarn Condition="'$(IsAnalyzersProject)' == 'true'">$(NoWarn);RS1024;RS1025;RS1026</NoWarn>
</PropertyGroup>