How to run Blazor webassembly project from command terminal ?

chandra dev 1 Reputation point
2022-09-30T12:15:21.11+00:00

I have created the Blazor WebAssembly project with Asp.net Core Hosted using visual studio 2022. It is working fine.

Now i am trying to run same project using VS Code. Build is working fine. Run command is not working.

I tried like this

dotnet run --project RadzenTest.sln
dotnet run --project RadzenTest.Server
dotnet run --project RadzenTest
dotnet run

Error Message : 'RadzenTest.sln' is not a valid project file.

any suggestion on this ?

Developer technologies .NET Blazor
{count} votes

1 answer

Sort by: Most helpful
  1. chandra dev 1 Reputation point
    2022-09-30T14:23:17.19+00:00

    @AgaveJoe Thanks for showing me direction.

    I did like this. It is working now

    > dotnet sln list

    Then i got the path of project , After this i run the CLI command like

    >dotnet run --project RadzenTest\Server\RadzenTest.Server.csproj

    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.