I'm having a problem using Acrosync in Auto Upload mode with a Visual Studio project. My goal is publish compiled assemblies to a local folder and then use Acrosync to upload the assemblies to a remote server. This works fine in manual upload mode. However, when I enable Auto Upload, Acryosync begins uploading while VS is still publishing. This creates a conflict, because Acrosync locks the directory prior to uploading and VS then gets an access denied error in the middle of the publishing process. This doesn't happen with small projects because the publish process finishes before Acrosync starts uploading. However, with a large project, containing a few hundred files, it fails every time.
I believe the solution would be to implement an optional delay in the Auto Upload. During that delay period, Acrosync would continue monitoring the directory and wait to see if files are still being written or not. Each time it sees additional files being written, it would reset the delay period. If the delay period expires with no additional activity, then Acrosync would start uploading.
Comments