dotnet-presentations / blazor-workshop

Blazor workshop
https://aka.ms/blazorworkshop
MIT License
3.5k stars 1.55k forks source link

02-customize-a-pizza missing using directive when using VS Code #181

Closed DanJ210 closed 4 years ago

DanJ210 commented 4 years ago

I'm using Visual Studio Code and in the second preview document we are told to add the code for showing the dialog window <ConfigurePizzaDialog> but there's an error or tokenization issue that says this is an unexpected name and if it's intended to be a component then add a @using directive for its namespace. Not sure what the namespace should be which is why I'm using this to learn Blazor.

image

danroth27 commented 4 years ago

Hi @DanJ210. The Blazor support is VS Code is still a work in progress, but has improved quite a bit over the past few months. If you're still seeing this issue with the latest VS Code C# extension, please file an issue in the https://github.com/dotnet/aspnetcore/issues repo and we'll take a look.