Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

VS2017 Angular template - angular & dotnet debug running on different ports

$
0
0

I hit F5 in VS 2017 and it starts the angular ClientApp portion on one port and the API portion on a different port.  For example, the launchSettings.json file says to use 58504 so the dotnet api project will open a browser window for that port.  But I noticed the client code that is rendered is old.  I looked at the Output window in VS and found the angular cli dev server was started on localhost:62009.  So I open a new browser window there and it is showing the correct client code, but all the apis are return 'not found' errors because it is looking on the wrong port.

How do I fix?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>