String dllFileName = "C:\\Program Files (x86)\\TRH\\bin\\GuiControls.dll"; Assembly assembly = Assembly.LoadFrom(dllFileName); var resources = assembly.GetManifestResourceNames(); foreach (string resourceName in resources) { var stream = assembly.GetManifestResourceStream(resourceName); var rawFile = new byte[stream.Length]; stream.Read(rawFile, 0, (int)stream.Length); using (var fs = new FileStream(resourceName, FileMode.Create)) { fs.Write(rawFile, 0, (int)stream.Length); } }
Extract embedded resources in C#
Из dll написанной на NETFramework нужно было вытянуть ресурсы (порядка 2000 картинок).