How to run any dotnet project from command terminal?

As we know that VS code is super-fast as compared to visual studio. Currently I am doing so much demo with Visual Studio Code. It is very light weight editor.

We can run any dotnet project using command terminal like

Step 1: Open the project on VS Code or command terminal

Step 2: Run the command >>dotnet build

Step 3: You have created Blazor WebAssembly project with Core Hosted from visual studio 2022. Then >> dotnet run command will not work. We need to give specific startup project name.

Type this command >> dotnet sln list

Step 4: Now select the specific project, which one you want to run

For more details about dotnet run, please visit this document


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.