In my case, I am using Visual Studio 2017 version 15.7.6 which is the latest release as of August 2018. This article will work with any Visual Studio application that uses http protocol. NET core application and I had to use a specific port number in Visual Studio. The need to change the default port came while I was taking SSO configuration with Okta and ASP.
In this blog post, I will show you how to change the default assigned port of an ASP.NET Core project in Visual Studio 2017.