Skip to content

Commit

Permalink
Merge pull request #18921 from dsplaisted/refactor-vb-imports
Browse files Browse the repository at this point in the history
Rationalize default Imports for C# and VB
  • Loading branch information
dsplaisted committed Jul 15, 2021
2 parents 1717047 + 9f43538 commit 55195f3
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,20 @@ Copyright (c) .NET Foundation. All rights reserved.

</ItemGroup>

<!-- C# implicit imports -->
<!-- Implicit imports -->
<ItemGroup Condition=" '$(DisableImplicitNamespaceImports_DotNet)' != 'true'
and '$(Language)' == 'C#'
and '$(TargetFrameworkIdentifier)' == '.NETCoreApp'
and $([MSBuild]::VersionGreaterThanOrEquals($(_TargetFrameworkVersionWithoutV), '6.0'))">
<Import Include="System" />
<Import Include="System.Collections.Generic" />

<!-- Imports already defined as VB implicit imports are conditioned to not be added twice -->
<Import Include="System" Condition="'$(Language)' != 'VB'" />
<Import Include="System.Collections.Generic" Condition="'$(Language)' != 'VB'" />
<Import Include="System.IO" />
<Import Include="System.Linq" />
<Import Include="System.Linq" Condition="'$(Language)' != 'VB'" />
<Import Include="System.Net.Http" />
<Import Include="System.Threading" />
<Import Include="System.Threading.Tasks" />
<Import Include="System.Threading.Tasks" Condition="'$(Language)' != 'VB'" />

</ItemGroup>

<!-- VB implicit imports -->
Expand Down

0 comments on commit 55195f3

Please sign in to comment.