i have created a blazor app via command line, now I am trying to run this app from visual studio code, when i start running VSC ask me to chose an environment . which environment should I use to run the application ?
-
When you run the app from VS Code what do you mean? Are you running it from the terminal in VSC or using a plugin?Chris Sainty– Chris Sainty2019-05-14 11:05:01 +00:00Commented May 14, 2019 at 11:05
-
i am not running it from terminal, but from VSC by pressing F5, i have already installed C# extension but it shows me this : cannot create .NET debug configurations. The OmniSharp server is still initializing or has exited unexpectedly.belabes abderrahmane– belabes abderrahmane2019-05-14 11:14:56 +00:00Commented May 14, 2019 at 11:14
Add a comment
|
1 Answer
So right now running Blazor apps using F5 in VS Code is not supported. There's currently an issue tracking this https://github.com/OmniSharp/omnisharp-vscode/issues/3024.
For now you can run Blazor applications using the terminal and the following dotnet CLI command in the same directory as the csproj file.
dotnet run
4 Comments
Chris Sainty
If you're happy this answers your question could you please mark it as the accepted answer so others can benefit. Thanks.
belabes abderrahmane
i have tryed to do it but i am not allowed because i am a new student
Chris Sainty
Anyone who asks a question has the rights to mark the answer. There should be a tick to the left of my answer you can click. Once it goes green its done.
M.Jafar
how to have hot reload enabled in vs code?