Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Don’t sleep on dotnet command line!
Bruno Silva
Bruno Silva

Posted on

     

Don’t sleep on dotnet command line!

If, like me, you’ve been developing Web APIs in .NET since the days of version 3.5 (or 2, or even 1.1!), then you’ve probably ran into the scenario of having to run multiple instances of Visual Studio to debug a multi-tiered or distributed application. If you’re still doing it to this day, there’s a trick to make life easier on us and on our poor laptops memory: run .NET Core apps from the terminal, even Web APIs!

Open a new terminal and browse to the project folder. From there, just do:

> dotnet run

Yes, simple like that. It triggers a build if the binaries are not present and starts up the application at the preconfigured endpoints. And if you're building .NET apps in Linux or Mac OS (you know you can do that, right?), it works just as well in the Unix terminal.

Bonus tip: If you haven’t tried the new Windows Terminal with tabs and customizable themes, check it out from Microsoft’sofficial Github page or from the Windows Store. It supports Windows Command Prompt, PowerShell, WSL, Azure and Visual Studio command line APIs.

It’s great to have multiple projects running locally while you work on an issue in one of the application layers. And great for not having to startup the entire Visual Studio suite several times.

What was the highest number of Visual Studio instances you had running on your machine at the same time?

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software developer and perennial learner. Also ask me about coffee, cycling or woodworking.
  • Location
    Kansas City, Missouri
  • Education
    Florida Atlantic University
  • Work
    Senior Software Engineer
  • Joined

More fromBruno Silva

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp