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

Answer accepted by question author
  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-07-05T10:18:58.473+00:00

    Hi,
    You will find hereafter the .cropj file

    <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

    <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
    </PropertyGroup>

    <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.3" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.3" PrivateAssets="all" />
    <PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
    </ItemGroup>

    <ItemGroup>
    <ProjectReference Include="..\Shared\WebApp2.Shared.csproj" />
    </ItemGroup>

    </Project>

    I don't hnow what I have to put in the cproj
    Thanks in advance

    0 comments No comments

  2. sblb 1,231 Reputation points
    2021-07-05T14:12:31.917+00:00

    Hi,

    When I build my app I add the error below :

    error CS0246: Le nom de type ou d'espace de noms 'MainLayout' est introuvable (vous manque-t-il une directive using ou une référence d'assembly ?) [...source\repos\WebApp3\Client\WebApp3.Client.csproj]

    This error is linked to the initial problem :
    111866-capture.png

    I don't have any idea how I can solve this issue. Can you help me about it?

    0 comments No comments

Your answer

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