@@ -82,7 +82,7 @@ protected override void BeginProcessing()
82
82
}
83
83
catch ( Exception ex )
84
84
{
85
- this . WriteVersionInfoToVerboseChannel ( ) ;
85
+ this . WriteVersionInfoToDebugChannel ( ) ;
86
86
if ( this . IsFatalException ( ex ) )
87
87
{
88
88
ThrowTerminatingError (
@@ -106,7 +106,7 @@ protected override void EndProcessing()
106
106
}
107
107
catch ( Exception ex )
108
108
{
109
- this . WriteVersionInfoToVerboseChannel ( ) ;
109
+ this . WriteVersionInfoToDebugChannel ( ) ;
110
110
if ( this . IsFatalException ( ex ) )
111
111
{
112
112
ThrowTerminatingError (
@@ -140,7 +140,7 @@ protected override void StopProcessing()
140
140
}
141
141
catch ( Exception ex )
142
142
{
143
- this . WriteVersionInfoToVerboseChannel ( ) ;
143
+ this . WriteVersionInfoToDebugChannel ( ) ;
144
144
if ( this . IsFatalException ( ex ) )
145
145
{
146
146
throw ;
@@ -172,7 +172,7 @@ public override void ExecuteCmdlet()
172
172
}
173
173
catch ( Exception ex )
174
174
{
175
- this . WriteVersionInfoToVerboseChannel ( ) ;
175
+ this . WriteVersionInfoToDebugChannel ( ) ;
176
176
177
177
if ( this . IsFatalException ( ex ) )
178
178
{
@@ -334,10 +334,10 @@ ex is SecurityException ||
334
334
ex is SEHException ;
335
335
}
336
336
337
- private void WriteVersionInfoToVerboseChannel ( )
337
+ private void WriteVersionInfoToDebugChannel ( )
338
338
{
339
- var versionInfo = typeof ( WebServicesCmdletBase ) . Assembly . GetName ( ) . Version ;
340
- this . WriteVerbose ( Resources . VersionInfo . FormatInvariant ( versionInfo . ToString ( 3 ) ) ) ;
339
+ var versionInfo = this . MyInvocation . MyCommand . Module . Version ;
340
+ this . WriteDebug ( Resources . VersionInfo . FormatInvariant ( versionInfo . ToString ( 3 ) ) ) ;
341
341
}
342
342
}
343
343
}
0 commit comments