Closed
Description
Good morning,
I just tracked down a CI failure to a .NET SDK update. With dotnet v6.0.100-preview.7.21379.14
our whole build is failing with the repeated error:
...obj\Debug\net6.0\PowerShellEditorServices.Test.ImplicitNamespaceImports.cs(2,1):
error CS8773: Feature 'global using directive' is not available in C# 9.0. Please use language version 10.0 or greater.
This error did not show up last night, with the same build on the same code, but using dotnet v6.0.100-preview.6.21355.2
. The big difference seeming to be Preview 6 to Preview 7.
I looked at #19446, but we do not (as far as I can find) use any <Import Include=...>
statements in any of our .csproj
files.
We are explicitly using language version 9.0, so I will update us to 10.0 to work around this, but it seems like there may be an underlying and unintended change between the two previews?