简体   繁体   English

WebSite动态端口(VS2010)

[英]WebSite dynamic port (VS2010)

How do i change VWDPort for WebSite (not web application) in Visual Studio 2010? 如何在Visual Studio 2010中更改VWDPort for WebSite(不是Web应用程序)? I found many articles that says to click the project and in F4 properties window set “Use Dynamic Ports” to false...But problem that i don't see such option in properties window and I think it's because we using WebSite and not WebApplication / WebProject. 我发现很多文章说要单击该项目,并在F4属性窗口中将“使用动态端口”设置为false ...但是问题是我在属性窗口中没有看到这样的选项,我认为这是因为我们使用的是WebSite而不是WebApplication / WebProject。 Is there any other way to do it? 还有其他方法吗?

Thanks 谢谢

You can get the properties of the web site project (F4) and change the "use dynamic port" settings and the port. 您可以获取网站项目(F4)的属性,并更改“使用动态端口”设置和端口。 Sorry, i can only post a screen shot in german: 抱歉,我只能发布德语的屏幕截图:

在此处输入图片说明

In Visual Studio 2012 在Visual Studio 2012中

If you create web site as file system Right Click on Web Site in Solution Explorer From Context Menu Choose use " Use Development Web Server" This will reload website into solution, hit OK Now select properties of website project You will see option of "Use Dynamic Port" and "Port Number" Cheers!! 如果将网站创建为文件系统,则在解决方案资源管理器中的网站上单击鼠标右键。从上下文菜单中选择“使用开发Web服务器”。这会将网站重新加载到解决方案中,单击“确定”。现在选择网站项目的属性。您将看到“使用动态”选项端口”和“端口号”加油!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM