private static void Save(VisualHgOptions options) { Directory.CreateDirectory(Path.GetDirectoryName(optionsPath)); Serializer.Serialize(optionsPath, options); }