Content files not updated by publishing in Visual Studio 2010 FTP

We use Subversion (via TortoiseSVN) and Visual Studio 2010 to deploy our website. We have a special account where we update SVN and then publish FTP on our real server. Unfortunately, sometimes when we publish, CSS and Javascript files that have changed are not pushed. This is not a caching problem, because we checked the server and the files did not actually change. There are no crashes in the publishing process to indicate that files are not coming. If we make a trivial change for them (adding, for example, space), they will be published just fine.

Any suggestions?

Edit: some thoughts that I had, but I'm not sure how to test: is it possible that if one person changes the file but doesn’t check it (Timestamp A), and someone else publishes (Timestamp B) that, when the file is later checked and updated on the server (Timestamp C), does Visual Studio see that B> A and ignores C, so it considers that updating is not required?

+6
source share
1 answer

I have the same problem with VS2010 and .js files and FTP publishing, except that I am using VSS.

Sometimes some files are not published after minor changes.

What I am doing is removing them from the server before publishing. I tried adding or removing a new line at the end of each file and it seems to work much faster than deleting files.

With two previous solutions or workarounds, the file may be skipped.

Another (not very effective time, but possibly better) solution is to select the publication option "Delete all existing files before publishing", but this significantly increases the publication time from several minutes to more than thirty minutes.

Also, I have this problem when I am the only one working on a project.

I know this is not an answer, but my first post is here, and I'm not sure how to reply to the message.

EDIT: My workaround (hopefully the best solution is found) is to delete all .js files on the server. This slightly increases the publishing time, but not as much as using the "Delete all existing files before publishing" option.

+3
source

Source: https://habr.com/ru/post/902939/


All Articles