protected override void Process(InstallArgs args) { Assert.ArgumentNotNull(args, "args"); string folderDirectory = args.WebRootPath + @"\App_Config\Include\"; SetDataFolderPatchHelper.Process(folderDirectory, args.DataFolderPath); }
public static void Process(string configPatchDirectoryPath, string dataFolderPath) { var doc = SetDataFolderPatchHelper.CreateDataFolderPatchConfig(dataFolderPath); using (var stringWriter = new StringWriter()) { using (var xmlWriter = new XmlTextWriter(stringWriter)) { xmlWriter.Formatting = Formatting.Indented; doc.WriteTo(xmlWriter); xmlWriter.Flush(); File.WriteAllText(configPatchDirectoryPath + dataFolderFilename, stringWriter.GetStringBuilder().ToString()); } } }