}
}
- public static string DotNetVersion {
+ public static string ThisApplicationPath {
get {
-#if NET_4_5
- return "net_4_5";
-#elif NET_4_0
- return "net_4_0";
-#else
- return "net_2_0";
-#endif
- }
- }
-
- public static string ThisDllName {
- get {
- var asm = Assembly.GetCallingAssembly ();
- return Path.GetFileName (asm.Location);
+ var asm = Assembly.GetEntryAssembly ();
+ return asm.Location;
}
}
public static string ThisConfigFileName {
get {
- var asm = Assembly.GetCallingAssembly ();
- var exe = Path.GetFileName (asm.Location);
+ var exe = Path.GetFileName (ThisApplicationPath);
return exe + ".config";
}
}