0

I saw a new feature, the Top level statements that simplifies the entry point of a console application

In Microsoft Docs

Yet one simple thing I am not able to get sugestions for: Using for namespaces outside this project

After adding the references in the console app's .csproj, I can normally add my using in any class I create:

using MyNameSpace.IsThis;

Typing Myname... will get Omnisharp to suggest me the namespace

But not in Main. Is this a bug? in c# or in the live compiler? I am able to add the using.

And interestingly, if I am using a namespace inside the same project, I get the suggestion while typing

quinestor
  • 1,432
  • 4
  • 19
  • 40
  • 1
    This looks like an IntelliSense bug. I filed a bug for dotnet/roslyn which you can track at https://github.com/dotnet/roslyn/issues/58470. – Youssef13 Dec 23 '21 at 08:52

1 Answers1

0

It was a bug , as Youssef13 pointed

quinestor
  • 1,432
  • 4
  • 19
  • 40