question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using statements not showing up for ctrl-.

See original GitHub issue

I’m still seeing issues with using statements not showing up in the lightbulb menu for new .NET Core projects

Steps to reproduce:

  1. Install .NET Core 2.0 SDK
  2. dotnet new console
  3. dotnet add package Microsoft.AspNetCore.All
  4. In Program.Main type WebHost and try to resolve the using statement for WebHost.

Expected result

  • Lightbulb to add using Microsoft.AspNetCore

Actual result

  • No helpful lightbulb to add the using statement
  • Waiting doesn’t help

Workaround:

  • Closing and reopening the folder causes the using statements to start to show up

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
DustinCampbellcommented, Nov 13, 2017

This issue has been fixed in the 1.14 milestone. We just released our first beta of 1.14 if you’re interested in giving it a spin. Follow these instructions to a beta release of C# for VS Code.

0reactions
Thainacommented, Jan 5, 2018

Still got this issue in beta2. vscode 1.19.1

image

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where are the using statements/directives in .NET 6
I am aware that I am not showing you all my code, but I was able to build and run something that looks...
Read more >
Add reference using Ctrl + . not working
2, trying to add a reference using the shortcut Ctrl + . will not work. It shows the dialog add references to Assembly...
Read more >
Implicit Using Statements In .NET 6 -.NET Core Tutorials
One of the newest features in .NET 6 is an implicit global using statement. This article takes a look at what this means...
Read more >
using statement - C# Reference | Microsoft Learn
Within the using block, the object is read-only and can't be modified or reassigned. A variable declared with a using declaration is read-only....
Read more >
Quick Tip - Remove Unused Using References in Visual Studio
When working on a C# project be it Xamarin, ASP.NET Core etc within Visual Studio, developers sometimes forget to clean up using statements....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found