After updating to VS2019 v. 16.4.5 the using statements in my .cshml.cs files are grayed out and Intellisense doesn't work. What's happening? How can I get around this?
I shutdown my machine overnight and started it this morning. When I tried to start VS2019, it failed to start and displayed a message box which said, in effect, an update was in progress. (I don't remember specifically the message.) I allowed it to complete
and the using statements are now active and Intellisense appears to be fully functional. I haven't a clue what was going on. The version number for VS2019 is unchanged.
Member
10 Points
9 Posts
Using statements are grayed out and Intellisense doesn't work on Razor pages after update to VS20...
Feb 19, 2020 10:28 PM|lenj1146|LINK
After updating to VS2019 v. 16.4.5 the using statements in my .cshml.cs files are grayed out and Intellisense doesn't work. What's happening? How can I get around this?
Contributor
4923 Points
4198 Posts
Re: Using statements are grayed out and Intellisense doesn't work on Razor pages after update to...
Feb 19, 2020 11:09 PM|DA924|LINK
Are all or some of the 'using' statements grayed- out?
Member
10 Points
9 Posts
Re: Using statements are grayed out and Intellisense doesn't work on Razor pages after update to...
Feb 20, 2020 12:04 AM|lenj1146|LINK
All using statements are grayed out. I do get some limited Intellisense, but I cannot get to identifier definitions. Thanks.
Contributor
4923 Points
4198 Posts
Re: Using statements are grayed out and Intellisense doesn't work on Razor pages after update to...
Feb 20, 2020 12:18 AM|DA924|LINK
You have Visual Stuido issues not .NET Core issues. which can be addressed at the below forum.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio
Member
10 Points
9 Posts
Re: Using statements are grayed out and Intellisense doesn't work on Razor pages after update to...
Feb 20, 2020 08:38 PM|lenj1146|LINK
I shutdown my machine overnight and started it this morning. When I tried to start VS2019, it failed to start and displayed a message box which said, in effect, an update was in progress. (I don't remember specifically the message.) I allowed it to complete and the using statements are now active and Intellisense appears to be fully functional. I haven't a clue what was going on. The version number for VS2019 is unchanged.
Contributor
2611 Points
2707 Posts
Re: Using statements are grayed out and Intellisense doesn't work on Razor pages after update to...
Mar 12, 2020 02:30 PM|wavemaster|LINK
I have seen similar issues where intellisense looses its intelligence all together for any entire file.
Or, when I do preview changes before publishing the squiggle generator is out of whack.
All-Star
53001 Points
23594 Posts
Re: Using statements are grayed out and Intellisense doesn't work on Razor pages after update to...
Mar 12, 2020 02:38 PM|mgebhard|LINK
Sometimes Visual Studio flakes out running some process. Closing and reopening Visual Studio fixes the editor code helpers, at least, for me.