开发者

Visual Studio 2010 - Change localhost to custom domain

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜