fix System.Reflection.Assembly.GetCallingAssembly().Location return empty string when publish single file
parent
33b7f25fd4
commit
44b0fc9b36
|
|
@ -14,7 +14,7 @@ namespace Luban.Common.Utils
|
||||||
|
|
||||||
public static string GetApplicationDirectory()
|
public static string GetApplicationDirectory()
|
||||||
{
|
{
|
||||||
return Path.GetDirectoryName(System.Reflection.Assembly.GetCallingAssembly().Location);
|
return AppContext.BaseDirectory;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetPathRelateApplicationDirectory(string relatePath)
|
public static string GetPathRelateApplicationDirectory(string relatePath)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue