File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/PowerShellEditorServices.Hosting Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1212using System . Management . Automation ;
1313using System . Management . Automation . Runspaces ;
1414
15- #if DEBUG
15+ #if ASSEMBLY_LOAD_STACKTRACE
1616using System . Diagnostics ;
1717#endif
1818
@@ -98,7 +98,7 @@ public static EditorServicesLoader Create(
9898
9999 AssemblyLoadContext . Default . Resolving += ( AssemblyLoadContext _ , AssemblyName asmName ) =>
100100 {
101- #if DEBUG
101+ #if ASSEMBLY_LOAD_STACKTRACE
102102 logger . Log ( PsesLogLevel . Diagnostic , $ "Assembly resolve event fired for { asmName } . Stacktrace:\n { new StackTrace ( ) } ") ;
103103#else
104104 logger . Log ( PsesLogLevel . Diagnostic , $ "Assembly resolve event fired for { asmName } ") ;
@@ -138,7 +138,7 @@ public static EditorServicesLoader Create(
138138 // Unlike in .NET Core, we need to be look for all dependencies in .NET Framework, not just PSES.dll
139139 AppDomain . CurrentDomain . AssemblyResolve += ( object sender , ResolveEventArgs args ) =>
140140 {
141- #if DEBUG
141+ #if ASSEMBLY_LOAD_STACKTRACE
142142 logger . Log ( PsesLogLevel . Diagnostic , $ "Assembly resolve event fired for { args . Name } . Stacktrace:\n { new StackTrace ( ) } ") ;
143143#else
144144 logger . Log ( PsesLogLevel . Diagnostic , $ "Assembly resolve event fired for { args . Name } ") ;
You can’t perform that action at this time.
0 commit comments