Skip to content

Commit 3d0fb29

Browse files
Explicitly disable implicit namespace imports (#1546)
This also reverts us back to language version 9.0. This reverts commit e29979c.
1 parent f6cf330 commit 3d0fb29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PowerShellEditorServices.Common.props

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
<VersionSuffix></VersionSuffix>
55
<Company>Microsoft</Company>
66
<Copyright>© Microsoft Corporation.</Copyright>
7-
<LangVersion>10.0</LangVersion>
7+
<LangVersion>9.0</LangVersion>
88
<PackageTags>PowerShell;editor;development;language;debugging</PackageTags>
99
<PackageLicenseUrl>https://raw.githubusercontent.com/PowerShell/PowerShellEditorServices/master/LICENSE</PackageLicenseUrl>
1010
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1111
<RepositoryType>git</RepositoryType>
1212
<RepositoryUrl>https://github.com/PowerShell/PowerShellEditorServices</RepositoryUrl>
1313
<DebugType>portable</DebugType>
1414
<!-- See: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview -->
15-
<EnableNETAnalyzers>true</EnableNETAnalyzers>
1615
<!-- TODO: Enable `EnforceCodeStyleInBuild` -->
16+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
17+
<!-- See: https://docs.microsoft.com/en-us/dotnet/core/compatibility/sdk/6.0/implicit-namespaces -->
18+
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
1719
</PropertyGroup>
1820
</Project>

0 commit comments

Comments
 (0)