We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0f7386 commit ca9e837Copy full SHA for ca9e837
build/_custom-goals.shade
@@ -18,5 +18,23 @@ use namespace="System.Net"
18
archive.CreateEntryFromFile(
19
"src/Microsoft.AspNet.Server.Kestrel/native/darwin/universal/libuv.dylib",
20
"native/darwin/universal/libuv.dylib");
21
+
22
+ XDocument doc;
23
+ var entry = archive.GetEntry("[Content_Types].xml");
24
+ using (var stream = entry.Open())
25
+ {
26
+ doc = XDocument.Load(stream);
27
+ }
28
+ doc.Root.Add(
29
+ new XElement(
30
+ XName.Get("Default", "http://schemas.openxmlformats.org/package/2006/content-types"),
31
+ new XAttribute("Extension", "dylib"),
32
+ new XAttribute("ContentType", "application/octet")
33
+ ));
34
35
36
+ doc.Save(stream);
37
38
39
archive.Dispose();
40
}
0 commit comments