File tree 1 file changed +3
-3
lines changed
src/PowerShellEditorServices.Hosting
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
using System . Management . Automation ;
13
13
using System . Management . Automation . Runspaces ;
14
14
15
- #if DEBUG
15
+ #if ASSEMBLY_LOAD_STACKTRACE
16
16
using System . Diagnostics ;
17
17
#endif
18
18
@@ -98,7 +98,7 @@ public static EditorServicesLoader Create(
98
98
99
99
AssemblyLoadContext . Default . Resolving += ( AssemblyLoadContext _ , AssemblyName asmName ) =>
100
100
{
101
- #if DEBUG
101
+ #if ASSEMBLY_LOAD_STACKTRACE
102
102
logger . Log ( PsesLogLevel . Diagnostic , $ "Assembly resolve event fired for { asmName } . Stacktrace:\n { new StackTrace ( ) } ") ;
103
103
#else
104
104
logger . Log ( PsesLogLevel . Diagnostic , $ "Assembly resolve event fired for { asmName } ") ;
@@ -138,7 +138,7 @@ public static EditorServicesLoader Create(
138
138
// Unlike in .NET Core, we need to be look for all dependencies in .NET Framework, not just PSES.dll
139
139
AppDomain . CurrentDomain . AssemblyResolve += ( object sender , ResolveEventArgs args ) =>
140
140
{
141
- #if DEBUG
141
+ #if ASSEMBLY_LOAD_STACKTRACE
142
142
logger . Log ( PsesLogLevel . Diagnostic , $ "Assembly resolve event fired for { args . Name } . Stacktrace:\n { new StackTrace ( ) } ") ;
143
143
#else
144
144
logger . Log ( PsesLogLevel . Diagnostic , $ "Assembly resolve event fired for { args . Name } ") ;
You can’t perform that action at this time.
0 commit comments