Copied from the NET 4.0 project (and also compared with the other NET 4.5 project)