简体   繁体   中英

How does Visual Studio 2013 keep track of files to publish using FTP

I am publishing to a server in another country so the date/time is very different to my development machine.

So I am hoping it does not:

  1. Always publish every file (unlikely)
  2. If not 1 then I hope it's more clever than just date/time comparison between PCs.

Some clarification:

  1. I do not know how does Visual Studio 2013 keeps track of files to publish using FTP.
  2. I like to know how VS2013 keeps track of which files to upload or if it even keeps track of such.

For publishing web projects with the FTP or File System methods, VS uses the last write time of the files. However, these times should be compared relative to UTC, so timezones should not make a difference. It also uses ~1 second rounding to allow for some time skew between machines.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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