function normalizePlatformVersion (originalVersion) {
  const normalizedVersion = util.coerceVersion(originalVersion, false);
  if (!normalizedVersion) {
    throw new Error(`The platform version '${originalVersion}' should be a valid version number`);
  }
  const {major, minor} = new semver.SemVer(normalizedVersion);
  return `${major}.${minor}`;
}