private void UpdateI18NAssembly(AssemblyInformation asm, string appFolder) { List <string> supportedI18N = asmDAO.GetSupportedI18N(asm); foreach (var i18n in supportedI18N) { Directory.CreateDirectory(Path.Combine(appFolder, i18n)); string asmName = asm.Name + ".resources.dll"; try { byte[] asmBytes = asmDAO.GetI18NAssembly(asm, i18n); if (asmBytes != null) { File.WriteAllBytes(Path.Combine(appFolder, i18n, asmName), asmBytes); Logger.Info(String.Format(Messages.FileUpdated, asmName, asm.Version)); } else { Logger.Warn(String.Format(Messages.FileMissing, asmName, asm.Version)); } } catch (Exception e) { Logger.Error(String.Format(Messages.FileError, asmName, asm.Version), e); } } }