You can make a homemade green bean casserole without canned soup by pairing fresh green beans with a simple creamy mushroom sauce and a crisp onion topping.
blanch the green beans before baking so they stay bright and tender, not soft. Drain them very well before adding the sauce. Use fresh beans when possible for the best bite. If you use frozen beans, thaw and pat them dry first. Cut large beans into even pieces so they cook at the same rate. Take your time with the roux, the butter-and-flour base for the sauce. Cook it for 2–3 minutes while stirring so the flour loses its raw taste. I add the fried onions just before baking because they brown quickly. If they darken before the casserole is hot, loosely cover the dish with foil. Bake until the sauce bubbles around the edges. Do not bake too long, or the blanched green beans can turn mushy. For extra flavor, cook a little garlic, shallot, or thyme with the mushrooms. Store leftovers in the refrigerator for up to 3 days or freeze without the onion topping for up to 2-3 weeks.