Skip to content

Commit

Permalink
Delete a handful of binaries that aren't necessary (and sometimes har…
Browse files Browse the repository at this point in the history
…mful) on net46 builds targeting Mono
  • Loading branch information
DustinCampbell committed Dec 13, 2016
1 parent 9d2617f commit 5071d3c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,20 @@ Task("OnlyPublish")
if (!IsRunningOnWindows() && framework == "net46")
{
CopyDirectory($"{msbuildLibForMonoInstallFolder}", outputFolder);
// Delete a handful of binaries that aren't necessary (and in some cases harmful) when running on Mono.
DeleteFile(System.IO.Path.Combine(outputFolder, "System.AppContext.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.Numerics.Vectors.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.Runtime.InteropServices.RuntimeInformation.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.ComponentModel.Primitives.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.ComponentModel.TypeConverter.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.Console.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.IO.FileSystem.Primitives.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.IO.FileSystem.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.Security.Cryptography.Encoding.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.Security.Cryptography.Primitives.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.Security.Cryptography.X509Certificates.dll"));
DeleteFile(System.IO.Path.Combine(outputFolder, "System.Threading.Thread.dll"));
}
if (requireArchive)
Expand Down

0 comments on commit 5071d3c

Please sign in to comment.