I need to use a couple verbal turns. The first looks like 'to open the bottle, not the box', the second does not seem correct to me but probably in German it will work better: 'to open not the box, but the bottle'.
So should the verb go in the end of the sentence or in the end of the first clause? How to say it all better? What about punctuation?
Es war notwendig, nicht die Flasche zu entdecken, aber den Kasten.
Es war notwendig, nicht die Flasche aber den Kasten zu entdecken.