开发者

Visual Studio 2010 - Change localhost to custom domain

开发者 https://www.devze.com 2023-03-01 16:46 出处:网络
How do I change so that debugging doesn\'t happen on localhost:randomNumber but on a custom domain like my.testsite.com:randomNumber?

How do I change so that debugging doesn't happen on localhost:randomNumber but on a custom domain like my.testsite.com:randomNumber?

I've added the domain to the hosts file and I can manually change the url when debugging from localhost to my.testsite.com, but can I make VS start at my.testsite.co开发者_开发问答m from the get-go instead of localhost?


Yes... you do that in the project options. You can specify a custom startup URL as well as a fixed port if you want. The built-in VS server will follow whatever you type there, then your hosts file will take care of the mappings for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号