Visual Studio 2012将覆盖每个FTP发布上的每个文件 [英] Visual Studio 2012 is overwriting every file on each FTP publish

查看:126
本文介绍了Visual Studio 2012将覆盖每个FTP发布上的每个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的解决方案转换为2012年.总体来说还可以,但是一个问题/更改确实很糟糕,我希望有个解决方法或解决方法.我使用FTP发布发布到服务器.在2010年,如果未选中删除"选项,则发布 明智地只会更新已更改的文件.  

I've recently converted my solutions to 2012.  On a whole it's okay, however one problem/change is really bad and I hope there is a fix or workaround.  I publish to servers using FTP Publish. In 2010 if the 'delete' option was not checked Publish would sensibly only update the files that had changed.  

但是现在2012年,它正在更新每个发布中的每个文件.  因为您可以想象一个带有大垃圾箱的网站,映像目录,这需要很长时间.  并不是每个人都能以MB +的上传速度连接到T1网络.

However now with 2012 it is updating every file on every publish.  As you can imaging a site with a large bin & image directory that this take a long time.  Not everyone has the luxury of being connected to a T1 network with MB+ upload speeds.

请告诉我,有一些配置设置可以关闭每个文件的上传.

Please tell me there is some config setting to turn off upload every file.

推荐答案

删除所有现有文件部署配置文件中未选中发布之前的文件 设置(我认为是基于您的措辞-只是确定)?

Is Delete all existing files prior to publish is unchecked in your deployment profile Settings (I thought so based on your wording - just making sure)?

如果您选择了其中一个文件,则在 Solution Explorer 中注意到了问题,然后查看 属性,在高级下是的值 复制到输出目录是否设置为如果更新则要复制?

如果没有,您应该尝试更改该设置.我想他们目前设置为 始终复制.


If you select one of the files you notice the issue with in Solution Explorer, then look at the Properties, under Advanced is the value for Copy to Output Directory set to Copy if newer?

If not, you should try changing that setting.  I imagine they are currently set to Copy always.



这篇关于Visual Studio 2012将覆盖每个FTP发布上的每个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆