From 32b90c048aa0c5bc8e67f96a98ea01c728c4a5be Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Fri, 10 Jun 2016 07:05:27 +0000 Subject: [PATCH] Remove Microsoft.PowerShell.Diagnostics from default Snapins on LINUX --- .../singleshell/config/MshSnapinInfo.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs b/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs index ff56cc0858..361d3c7cc1 100644 --- a/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs +++ b/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs @@ -1408,9 +1408,10 @@ namespace System.Management.Automation { defaultMshSnapins = new List() { +#if !LINUX // Microsoft.PowerShell.Commands.Diagnostics.dll needs to be ported new DefaultPSSnapInInformation("Microsoft.PowerShell.Diagnostics", "Microsoft.PowerShell.Commands.Diagnostics", null, "GetEventResources,Description", "GetEventResources,Vendor"), - +#endif new DefaultPSSnapInInformation("Microsoft.PowerShell.Host", "Microsoft.PowerShell.ConsoleHost", null, "HostMshSnapInResources,Description","HostMshSnapInResources,Vendor"),