Visual Studio 2010 - Change localhost to custom domain

纵然是瞬间 提交于 2019-12-01 02:58:10

问题


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.com from the get-go instead of localhost?


回答1:


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.



来源:https://stackoverflow.com/questions/5810528/visual-studio-2010-change-localhost-to-custom-domain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!