Commit baf7df2 1 parent 1a65425 commit baf7df2 Copy full SHA for baf7df2
File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public string GenerateHighLightCode(HighLightParameter parameter)
50
50
51
51
if ( _section == null )
52
52
throw new FileNotFoundException ( "ConfigurationManager.GetSection(\" HighLightSection\" ) failed!" ) ;
53
- var workingDirectory = Path . Combine ( ProcessHelper . GetAssemblyLocationDirectory , _section . FolderName ) ;
53
+ var workingDirectory = Path . Combine ( ProcessHelper . GetDirectoryFromPath ( Assembly . GetCallingAssembly ( ) . Location ) , _section . FolderName ) ;
54
54
55
55
ProcessHelper helper = new ProcessHelper ( workingDirectory , _section . ProcessName ) ;
56
56
helper . Arguments = GenerateArguments ( inputFileName , outputFileName ) ;
Original file line number Diff line number Diff line change @@ -30,11 +30,12 @@ public static string GetAssemblyLocationDirectory
30
30
{
31
31
get
32
32
{
33
- string assemblyDirectory = Path . GetDirectoryName ( Assembly . GetExecutingAssembly ( ) . Location ) ;
33
+ string assemblyDirectory = Path . GetDirectoryName ( Assembly . GetCallingAssembly ( ) . Location ) ;
34
34
return assemblyDirectory ;
35
35
}
36
36
}
37
37
38
+
38
39
#endregion
39
40
40
41
#region -- Constructor --
@@ -75,5 +76,13 @@ public void ProcessStart()
75
76
if ( ! p . HasExited ) p . WaitForExit ( ) ;
76
77
}
77
78
}
79
+
80
+
81
+ public static string GetDirectoryFromPath ( string path )
82
+ {
83
+ string assemblyDirectory = Path . GetDirectoryName ( path ) ;
84
+ return assemblyDirectory ;
85
+
86
+ }
78
87
}
79
88
}
You can’t perform that action at this time.
0 commit comments