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:
authorDavid Pine <david.pine@microsoft.com>2022-10-20 21:34:19 +0300
committerGitHub <noreply@github.com>2022-10-20 21:34:19 +0300
commit12967a9918283fc5c17914afb761dbb7b33eb18d (patch)
tree57407292f31320b37b4a3b449da21f9d2504a4bd
parente855d8ac20a8a17724729ab36ef983ed4c20fab2 (diff)
Update CSharp.Common.targetsinclude-true-condition
According to our docs, implicit usings are enabled one of two ways; `enable` or `true`. https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#using
-rw-r--r--eng/targets/CSharp.Common.targets2
1 files changed, 1 insertions, 1 deletions
diff --git a/eng/targets/CSharp.Common.targets b/eng/targets/CSharp.Common.targets
index 9f553dd468..1c8c737e19 100644
--- a/eng/targets/CSharp.Common.targets
+++ b/eng/targets/CSharp.Common.targets
@@ -52,7 +52,7 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
- <ItemGroup Condition="'$(ImplicitUsings)' == 'enable'">
+ <ItemGroup Condition="'$(ImplicitUsings)' == 'enable' or '$(ImplicitUsings)' == 'true'">
<!-- We should make it obvious when Linq is being used in shipping code -->
<Using Remove="System.Linq" Condition="'$(_IsSrcProject)' == 'true'" />
<!-- System.Net.Http types will frequently conflict with ASP.NET Core types-->