Blazor wasm in VS CODE

sblb 1,231 Reputation points
2021-06-25T13:22:39.303+00:00

Hi,
I've tried to use blazor wasm in vs code and I have some difficulties to install things correctly.

I don't undserstant why <Nav / > is underlined
109432-capture.png

It's the things in another razor page all htlm is underlined.

Other point :
I would like to use radzen.blazor in vs code but it is not available for the moment, I would like to know if you know of any packages available in vs code with components already integrated such as datatable ... that are free!

Developer technologies .NET Blazor
{count} votes

Accepted answer
  1. sblb 1,231 Reputation points
    2021-07-06T08:15:30.77+00:00

    First of all, thanks to your answer.

    The problem is resolved here : 4580

    0 comments No comments

6 additional answers

Sort by: Most helpful
  1. sblb 1,231 Reputation points
    2021-06-28T10:20:01.863+00:00

    Hello, thanks for the link but I don't want to use the radzen application,
    I only want to use the radzen package for the UI e.g datagrid...
    So I can configure the debugger in the following way :

        "configurations": [  
        {  
            "name": "Launch and Debug Standalone Blazor WebAssembly App",  
            "type": "blazorwasm",  
            "request": "launch",  
            "program": "${workspaceFolder}/Server/bin/Debug/net5.0/WebApp2.Server.dll",  
            "cwd": "${workspaceFolder}/Server",  
    
    
        }  
    ]  
    

    The problem is not with the debugger.
    The Program.cs file it does not recognize the <App> and in my App.razor file I have this:
    programs.cs
    109891-capture.png

    App.razor

    109848-capture.png

    I really don't understand why I've this ?
    Have you an idea? thanks in advance


  2. sblb 1,231 Reputation points
    2021-06-29T09:02:31.617+00:00

    Hi,
    You will find the message that obtain when I run the debugging

    110261-capture.png

    I modified the Launch.json file to add "browser":edge and I don't have this message anymore.

    So I still have the problem in program.cs and App.razor and also in the imports file. I suspect I'm missing some packages
    In _imports.razor files
    110233-capture.png


  3. sblb 1,231 Reputation points
    2021-06-29T16:19:35.593+00:00

    Hi. I didn't see anything in csproj file.
    In my side I launched

    dotnet new blazorwasm myproject - ho

    Normally I should do nothing in csproj file.
    Crpoj file is configured when I do dotnet new...

    ?

    0 comments No comments

  4. sblb 1,231 Reputation points
    2021-07-01T06:18:16.547+00:00

    Hi, have you an idea about this problem?
    Thanks in advance

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.