Skip to content

Commit e9eb22d

Browse files
Add windows compatibility pack and new feature dependencies to trustedAssemblies list (#9)
1 parent 2282ca6 commit e9eb22d

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,10 +668,12 @@ namespace NativeMsh
668668
// NOTE: The names must not include the .dll extension because it will be added programmatically.
669669
static PCSTR trustedAssemblies[] =
670670
{
671+
"Markdig",
671672
"Microsoft.ApplicationInsights",
672673
"Microsoft.CodeAnalysis",
673674
"Microsoft.CodeAnalysis.CSharp",
674675
"Microsoft.CSharp",
676+
"Microsoft.DiaSymReader.Native.amd64",
675677
"Microsoft.Management.Infrastructure",
676678
"Microsoft.Management.Infrastructure.CimCmdlets",
677679
"Microsoft.Management.Infrastructure.Native",
@@ -680,50 +682,63 @@ namespace NativeMsh
680682
"Microsoft.PowerShell.Commands.Utility",
681683
"Microsoft.PowerShell.ConsoleHost",
682684
"Microsoft.PowerShell.CoreCLR.Eventing",
683-
"Microsoft.PowerShell.LocalAccounts",
684-
"Microsoft.PowerShell.PSReadLine",
685+
"Microsoft.PowerShell.MarkdownRender",
685686
"Microsoft.PowerShell.SDK",
686687
"Microsoft.PowerShell.Security",
687688
"Microsoft.VisualBasic",
688689
"Microsoft.Win32.Primitives",
689690
"Microsoft.Win32.Registry",
690691
"Microsoft.Win32.Registry.AccessControl",
692+
"Microsoft.Win32.SystemEvents",
691693
"Microsoft.WSMan.Management",
692694
"Microsoft.WSMan.Runtime",
693695
"mscorlib",
694696
"netstandard",
695697
"Newtonsoft.Json",
698+
"NJsonSchema",
699+
"PowerShell.Core.Instrumentation",
696700
"System",
697701
"System.AppContext",
698702
"System.Buffers",
703+
"System.CodeDom",
699704
"System.Collections",
700705
"System.Collections.Concurrent",
701706
"System.Collections.Immutable",
702707
"System.Collections.NonGeneric",
703708
"System.Collections.Specialized",
704-
"System.Configuration",
705709
"System.ComponentModel",
706710
"System.ComponentModel.Annotations",
711+
"System.ComponentModel.Composition",
707712
"System.ComponentModel.DataAnnotations",
708713
"System.ComponentModel.EventBasedAsync",
709714
"System.ComponentModel.Primitives",
710715
"System.ComponentModel.TypeConverter",
716+
"System.Configuration",
717+
"System.Configuration.ConfigurationManager",
711718
"System.Console",
712719
"System.Core",
713720
"System.Data",
714721
"System.Data.Common",
722+
"System.Data.DataSetExtensions",
723+
"System.Data.Odbc",
715724
"System.Data.SqlClient",
716725
"System.Diagnostics.Contracts",
717726
"System.Diagnostics.Debug",
718727
"System.Diagnostics.DiagnosticSource",
728+
"System.Diagnostics.EventLog",
719729
"System.Diagnostics.FileVersionInfo",
730+
"System.Diagnostics.PerformanceCounter",
720731
"System.Diagnostics.Process",
721732
"System.Diagnostics.StackTrace",
722733
"System.Diagnostics.TextWriterTraceListener",
723734
"System.Diagnostics.Tools",
724735
"System.Diagnostics.TraceSource",
725736
"System.Diagnostics.Tracing",
737+
"System.DirectoryServices",
738+
"System.DirectoryServices.AccountManagement",
739+
"System.DirectoryServices.Protocols",
726740
"System.Drawing",
741+
"System.Drawing.Common",
727742
"System.Drawing.Primitives",
728743
"System.Dynamic.Runtime",
729744
"System.Globalization",
@@ -744,11 +759,13 @@ namespace NativeMsh
744759
"System.IO.Packaging",
745760
"System.IO.Pipes",
746761
"System.IO.Pipes.AccessControl",
762+
"System.IO.Ports",
747763
"System.IO.UnmanagedMemoryStream",
748764
"System.Linq",
749765
"System.Linq.Expressions",
750766
"System.Linq.Parallel",
751767
"System.Linq.Queryable",
768+
"System.Management",
752769
"System.Management.Automation",
753770
"System.Memory",
754771
"System.Net",
@@ -791,6 +808,8 @@ namespace NativeMsh
791808
"System.Resources.ResourceManager",
792809
"System.Resources.Writer",
793810
"System.Runtime",
811+
"System.Runtime.Caching",
812+
"System.Runtime.CompilerServices.Unsafe",
794813
"System.Runtime.CompilerServices.VisualC",
795814
"System.Runtime.Extensions",
796815
"System.Runtime.Handles",
@@ -814,16 +833,20 @@ namespace NativeMsh
814833
"System.Security.Cryptography.OpenSsl",
815834
"System.Security.Cryptography.Pkcs",
816835
"System.Security.Cryptography.Primitives",
836+
"System.Security.Cryptography.ProtectedData",
817837
"System.Security.Cryptography.X509Certificates",
838+
"System.Security.Cryptography.Xml",
818839
"System.Security.Permissions",
819840
"System.Security.Principal",
820841
"System.Security.Principal.Windows",
821842
"System.Security.SecureString",
843+
"System.ServiceModel",
822844
"System.ServiceModel.Duplex",
823845
"System.ServiceModel.Http",
824846
"System.ServiceModel.NetTcp",
825847
"System.ServiceModel.Primitives",
826848
"System.ServiceModel.Security",
849+
"System.ServiceModel.Syndication",
827850
"System.ServiceModel.Web",
828851
"System.ServiceProcess",
829852
"System.ServiceProcess.ServiceController",

0 commit comments

Comments
 (0)