It really depends on the type of dog and temperament.
Only last week I was confronted by a dog that belonged to a workman who was repairing the fence of one of the shared drive occupants. This was on property that as a crosslease holder I have every right to enjoy unimpeded use of. Things got nasty after that as I don't tolerate menacing dogs, especially on private property.
At the other hand, I have often met other dogs that obviously belonged to workmen and after gaining reassurance from the owner, have had some very enjoyable playtimes with friendly strange dogs.