简体   繁体   English

当我在Visual Studio中签入时,如何通过ftp将更改的文件上传到我的服务器?

[英]How to upload changed files to my server via ftp, when i check in visual studio?

I am using Asp.Net Mvc with Visual Studio 2017 Enterprise. 我正在将Asp.Net Mvc与Visual Studio 2017 Enterprise一起使用。

I am synchronizing my files with Visual Studio Team Services( VSTS ) in the cloud. 我正在将文件与云中的Visual Studio Team Services( VSTS )同步。

I dont want to use Publish in Visual Studio. 我不想在Visual Studio中使用发布 When i Check In my files to VSTS, i want VSTS to send my files to my server via FTP Upload . 当我将文件入VSTS时,我希望VSTS通过FTP上传将文件发送到服务器。

I tried some menus in VSTS but i couldn't managed it. 我在VSTS中尝试了一些菜单,但无法管理。

My purpose is Publishing my files (built in my local pc via Visual Studio) by clicking only Check In Button. 我的目的是通过点击只会查看按钮发布我的文件(建于通过Visual Studio的本地PC)。

By the way i used an VSTS extension named "FTP Uploader", but i couldn't managed it. 顺便说一句,我使用了一个名为“ FTP Uploader”的VSTS扩展,但是我无法对其进行管理。 It didn't work. 没用

So i need a solution for this. 所以我需要一个解决方案。 Thanks anyway. 不管怎么说,还是要谢谢你。

You could setup an automated release in VSTS to handle this (and optionally, an automated build before the release). 您可以在VSTS中设置一个自动发行版来处理此问题(也可以选择在发行前进行自动构建)。 When you create the release, there's an FTP upload task you can use as well. 创建发行版时,还可以使用一个FTP上传任务

Any way you go, you're going to need to create a build, which is how you should be building your software, not using local builds. 无论采用哪种方式,都需要创建一个内部版本,这就是应该构建软件的方式,而不是使用本地内部版本。 Local builds run the risk of having different .DLLs on your machine as opposed to someone else's machine. 本地版本具有在您的计算机(而不是其他人的计算机)上具有不同的.DLL的风险。 A structured build validates that the solution can stand alone. 结构化的构建验证了该解决方案可以独立存在。 Once you've constructed that, you can add a step to publish whatever you like to almost any destination. 构造好之后,您可以添加一个步骤,将所需的内容发布到几乎所有目的地。 I'm not sure I understand your need for uploading to an FTP server, though - can you elaborate on that? 不过,我不确定我是否了解您需要上传到FTP服务器-您可以详细说明吗?

暂无
暂无

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

相关问题 通过FTP连接时如何停止Visual Studio 2010下载大文件 - How do I stop Visual Studio 2010 from downloading large files when connected through FTP Visual Studio 2022 发布菜单中没有 ftp 菜单。 如何通过 ftp 发布? - There is no ftp menu in Visual Studio 2022 publish menu. How can I publish via ftp? 有没有一种方法可以在Visual Studio 2008+中在FTP服务器上编辑和保存文件? - Is there a way to edit and save files on an FTP server in Visual Studio 2008+? 在编辑css文件时,如何强制Visual Studio遵循自定义CSS模板? - How can I force Visual Studio to follow a custom CSS template when I edit my css files? 如何在Visual Studio外部更改文件时更新TFS中的解决方案文件? - How to update solution files in TFS when files are changed outside of Visual Studio? Team Foundation Server / Visual Studio-通知文件/项目是否已更改 - Team foundation server / Visual studio - notify if files/project has changed 如何在失去焦点时自动保存我的 Visual Studio 2015 文件? - How can I AutoSave my Visual Studio 2015 files when it loses focus? 通过Visual Studio跟踪更改的文件 - Tracking of changed files by Visual Studio 解决方案文件随Visual Studio更新而更改,我应该签入吗? - Solution file gets changed with Visual Studio update, should I check in? 如何将 Visual Studio 项目 FTP 设置到远程 IIS 服务器? - How to setup Visual Studio project FTP to a remote IIS Server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM