From a04b1f5c4b03badc202f4d8dca4dc41ae9471910 Mon Sep 17 00:00:00 2001 From: leechristensen Date: Wed, 16 Mar 2016 23:20:55 -0600 Subject: [PATCH] Removed loading the assembly from disk --- UnmanagedPowerShell/UnmanagedPowerShell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnmanagedPowerShell/UnmanagedPowerShell.cpp b/UnmanagedPowerShell/UnmanagedPowerShell.cpp index 76d6b9f..b40e8eb 100644 --- a/UnmanagedPowerShell/UnmanagedPowerShell.cpp +++ b/UnmanagedPowerShell/UnmanagedPowerShell.cpp @@ -213,7 +213,7 @@ int _tmain(int argc, _TCHAR* argv[]) // Load the .NET assembly. // (Option 1) Load it from disk - usefully when debugging the PowerShellRunner app (you'll have to copy the DLL into the same directory as the exe) - hr = spDefaultAppDomain->Load_2(bstrAssemblyName, &spAssembly); + // hr = spDefaultAppDomain->Load_2(bstrAssemblyName, &spAssembly); // (Option 2) Load the assembly from memory SAFEARRAYBOUND bounds[1];