Which answer is a correctly punctuated compound sentence?

Athis book was very long; i liked it anyway.
Bthis book was very long, i liked it anyway.
Cthis book was very long but i liked it anyway.
Dthis book was very long i liked it anyway.