curve project + extrude

 From:  ulisses
10871.1 
Hello,

I projected a rectangle into a cylinder.
Then I need to extrude the projected rectangle, but I get it opened (no caps).
Probably my construct concept is wrong because it is curved, but how to solve it?

Tks,
Ulisses