File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,20 @@ private static ProcessStartInfo OSDependentStartInfo(ProcessRuntime processRunti
348348
349349 if ( CurrentPlatform == Platform . Windows )
350350 {
351- startInfo = new ProcessStartInfo ( processPath , processArguments ) ;
351+ switch ( processRuntime )
352+ {
353+ case ProcessRuntime . CLR20 :
354+ var runtimePath = Path . Combine ( unityEditorDataDir , @"Mono/bin/mono.exe" ) ;
355+ startInfo = new ProcessStartInfo ( runtimePath , $ "\" { processPath } \" { processArguments } ") ;
356+ break ;
357+
358+ case ProcessRuntime . CLR40 :
359+ startInfo = new ProcessStartInfo ( processPath , processArguments ) ;
360+ break ;
361+
362+ default :
363+ throw new ArgumentOutOfRangeException ( nameof ( processRuntime ) , processRuntime , null ) ;
364+ }
352365 }
353366 else
354367 {
You can’t perform that action at this time.
0 commit comments