简体   繁体   English

发布网站的发行版本

[英]publish a release version of web site

I have a web site that is created in visual studio 2010 through: File > New > Web site (it is not a Web Project). 我有一个通过以下方式在Visual Studio 2010中创建的网站:文件>新建>网站(它不是Web项目)。

I want to publish a release version of my web site but there is no 'Release' mode in VS and there is no possibility to add 'Release' mode through Build > Configuration manager. 我想发布我的网站的发行版,但是VS中没有“发布”模式,并且无法通过“构建”>“配置管理器”添加“发布”模式。

How can I publish a release version of my web site ??(I can not convert my web site to a Web Project) 如何发布网站的发行版?(我无法将网站转换为Web项目)

Thank you very mush for your reply. 非常感谢您的答复。

When you have a website project and your using VS 2010 then somewhere amongst the menu options in the menubar across the top should be an option caled COPY WEBSITE (I think its in the website menu). 当您有一个网站项目并使用VS 2010时,顶部菜单栏中的菜单选项中应该有一个选项称为COPY WEBSITE(我认为它在网站菜单中)。

So you click WEBSITE > COPY WEBSITE then you will see a new tab appear very similar to an FTP kind of interface, with your LOCAL files on the left and the remmote server hosting on the right. 因此,您单击“网站”>“复制网站”,然后您将看到一个新选项卡,它看起来非常类似于FTP类型的界面,左侧是LOCAL文件,右侧是托管了remmote服务器。

You could use either FTP or Direct upload but the very last time I could only use it via FTP. 您可以使用FTP或直接上传,但是最近一次我只能通过FTP使用它。 (Of course this may be a personal issue and not affect anyone else). (当然,这可能是个人问题,不会影响其他任何人)。

It goes without saying that if you dontr have a server to upload your website to then it can not be "released" as you called it. 不用说,如果您有供服务器上载网站的服务器,则不能像您所说的那样“发布”该网站。

Usually the server or hosting is either on your own server or on a remote (Paid for) server with a service provider. 通常,服务器或托管服务器位于您自己的服务器上,或者位于具有服务提供商的远程(付费)服务器上。

With reference to the photo below.... 参考下面的照片。

Area-1 is where you enter the FTP or HTTP address of the server where you will upload te files. 在Area-1中,您可以输入要上传文件的服务器的FTP或HTTP地址。 Loacl-Files This shows your completed website files Remote-Files This shows the files on the server Controls These button are used to upload or download files to and from the server Loacl-Files显示您已完成的网站文件Remote-Files显示服务器上的文件Controls这些按钮用于向服务器上载文件或从服务器上下载文件

Note that you must have an FTP username and password to use FTP/HTTP transfer, Some hosts may prefer you to use your admin account username and password. 请注意,您必须具有FTP用户名和密码才能使用FTP / HTTP传输。某些主机可能更希望您使用管理员帐户的用户名和密码。

Hope this helps point you in the right direction 希望这可以帮助您指出正确的方向

在此处输入图片说明

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

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