title: How to set a default port for ASP.NET Core Angular app
body: <p>I created a dotnet core project with the template <strong>ASP.NET Core with Angular</strong> using the dotnet CLI</p>
  
  <p><code>dotnet new angular</code></p>
  
  <p>Now, whenever I run the application using <code>dotnet run</code> command, angular serves with a different port each time.</p>
  
  <p>I tried setting the default serve port in angular-cli.json</p>
  
  <pre><code>"defaults": {
    ..
    "serve": {
      "port": 4200
    }
  }
  </code></pre>
  
  <p>doesn't work though. </p>
  
  <p>I couldn't find any documentation online, so where can I set the default port?</p>