diff --git a/src/powershell-run/main.cs b/src/powershell-run/main.cs index d26a5c58d8..b5e76b6168 100644 --- a/src/powershell-run/main.cs +++ b/src/powershell-run/main.cs @@ -74,13 +74,6 @@ namespace Microsoft.Samples.PowerShell.Host set { this.exitCode = value; } } - // TODO:PSL this needs to be removed, it is only here for legacy testing purposes - public static void init() - { - string psBasePath = System.IO.Directory.GetCurrentDirectory(); - PowerShellAssemblyLoadContextInitializer.SetPowerShellAssemblyLoadContext(psBasePath); - } - // this is the unmanaged main entry point used by the CoreCLR host public static int UnmanagedMain(int argc, [MarshalAs(UnmanagedType.LPArray,ArraySubType=UnmanagedType.LPStr,SizeParamIndex=0)] String[] argv) { @@ -102,7 +95,6 @@ namespace Microsoft.Samples.PowerShell.Host /// This parameter is not used. private static void Main(string[] args) { - init(); ManagedMain(args); }