"'to do' something" and "doing something" are completelyfunctionally equivalent in this case. The former is the infinitive, and the latter is the gerund form. Both work, whether preceded by "like" or "dislike".
I like doing something.
- I like doing something.
I like to do something.
- I like to do something.
I dislike doing something.
- I dislike doing something.
I dislike to do something.
- I dislike to do something.
The last example (dislike +inf.) is awkward and rarely used, but still grammatically correct.
Just don't say:
I like to doing something