Let $X$ be an affine scheme and $\mathcal{E}$ a finitely generated locally free sheaf on $X$. It is obvious that $\mathcal{E}$ is a projective object in the category Qcoh$(X)$ since we can pass to rings and modules.
My question is: is $\mathcal{E}$ still projective when we consider it in the larger category $\mathcal{O}_X$-mod which consists of all $\mathcal{O}_X$-modules? If it is true, how to prove it in a "cohomological way"?
I'm not sure whether this question is suitable for mathoverflow. Please feel free to move it if necessary.