static void CovertFeatureFile(string featureFile, string mmFile) { FeatureSet featureSet = new FeatureSet(); featureSet.Load(featureFile); XmlDocument xmlDoc = featureSet.ToXmlDocument(); xmlDoc.Save(mmFile); }
static void ConvertFeatureFolder(string featuresFolder, string mmFile) { string[] files = Directory.GetFiles(featuresFolder, "*.feature", SearchOption.AllDirectories); FeatureSet featureSet = new FeatureSet(); foreach (string file in files) { FeatureSet temp = new FeatureSet(); temp.Load(file); featureSet.Merge(temp); } XmlDocument xmlDoc = featureSet.ToXmlDocument(); xmlDoc.Save(mmFile); }