The most important trick when cooking mushrooms is to intensify their flavour (though don’t dismiss the joy of a raw, sliced mushroom in a 
salad). Baking, roasting and fierce frying will all do much to prevent excess sogginess. Draining off excess water during the cooking process can also be a good technique – just remember to retain and chill or freeze this highly flavoured liquid