File tree 1 file changed +14
-2
lines changed
test/PowerShellEditorServices.Test.Host
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,20 @@ protected async Task<Tuple<int, int>> LaunchService(
34
34
string modulePath = Path . GetFullPath ( @"..\..\..\..\..\module" ) ;
35
35
string scriptPath = Path . Combine ( modulePath , "Start-EditorServices.ps1" ) ;
36
36
37
- // TODO: Need to determine the right module version programmatically!
38
- string editorServicesModuleVersion = "1.4.1" ;
37
+ #if CoreCLR
38
+ FileVersionInfo fileVersionInfo =
39
+ FileVersionInfo . GetVersionInfo ( this . GetType ( ) . GetTypeInfo ( ) . Assembly . Location ) ;
40
+ #else
41
+ FileVersionInfo fileVersionInfo =
42
+ FileVersionInfo . GetVersionInfo ( this . GetType ( ) . Assembly . Location ) ;
43
+ #endif
44
+
45
+ string editorServicesModuleVersion =
46
+ string . Format (
47
+ "{0}.{1}.{2}" ,
48
+ fileVersionInfo . FileMajorPart ,
49
+ fileVersionInfo . FileMinorPart ,
50
+ fileVersionInfo . FileBuildPart ) ;
39
51
40
52
string scriptArgs =
41
53
string . Format (
You can’t perform that action at this time.
0 commit comments