File tree 2 files changed +18
-2
lines changed
PowerShellEditorServices/Session
PowerShellEditorServices.Host 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,15 @@ static void Main(string[] args)
94
94
}
95
95
#endif
96
96
97
- Logger . Write ( LogLevel . Normal , "PowerShell Editor Services Host starting..." ) ;
97
+ FileVersionInfo fileVersionInfo =
98
+ FileVersionInfo . GetVersionInfo (
99
+ System . Reflection . Assembly . GetExecutingAssembly ( ) . Location ) ;
100
+
101
+ Logger . Write (
102
+ LogLevel . Normal ,
103
+ string . Format (
104
+ "PowerShell Editor Services Host v{0} starting..." ,
105
+ fileVersionInfo . FileVersion ) ) ;
98
106
99
107
// Start the server
100
108
server . Start ( ) ;
Original file line number Diff line number Diff line change @@ -130,7 +130,15 @@ private void Initialize(Runspace initialRunspace)
130
130
// TODO: Should this be configurable?
131
131
this . SetExecutionPolicy ( ExecutionPolicy . RemoteSigned ) ;
132
132
133
- PowerShellVersion = GetPowerShellVersion ( ) ;
133
+ // Get the PowerShell runtime version
134
+ this . PowerShellVersion = GetPowerShellVersion ( ) ;
135
+
136
+ // Write out the PowerShell version for tracking purposes
137
+ Logger . Write (
138
+ LogLevel . Normal ,
139
+ string . Format (
140
+ "PowerShell runtime version: {0}" ,
141
+ this . PowerShellVersion ) ) ;
134
142
135
143
#if ! PowerShellv3
136
144
if ( PowerShellVersion > new Version ( 3 , 0 ) )
You can’t perform that action at this time.
0 commit comments