Differences
This shows you the differences between the selected revisions of the page.
2019-08-18 | 2019-08-18 | ||
separate assembly merging section (martin) | simplifying code using File.Create (martin) | ||
Line 111: | Line 111: | ||
using (Stream resource = Assembly.GetExecutingAssembly().GetManifestResourceStream(resName)) | using (Stream resource = Assembly.GetExecutingAssembly().GetManifestResourceStream(resName)) | ||
- | using (Stream file = new FileStream(executablePath, FileMode.Create, FileAccess.Write)) | + | using (Stream file = File.Create(executablePath)) |
{ | { | ||
resource.CopyTo(file); | resource.CopyTo(file); |