File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
test/PowerShellEditorServices.Test.Host Expand file tree Collapse file tree 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(
3434 string modulePath = Path . GetFullPath ( @"..\..\..\..\..\module" ) ;
3535 string scriptPath = Path . Combine ( modulePath , "Start-EditorServices.ps1" ) ;
3636
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 ) ;
3951
4052 string scriptArgs =
4153 string . Format (
You can’t perform that action at this time.
0 commit comments