How do you get a dog to like you?

Be nice to it, spend time with it, bond with it, and give it some treats every now and then.