string
path
=
""
;
if (System.Environment.CurrentDirectory == AppDomain.CurrentDomain.BaseDirectory) // Windows应用程序则相等
... {
path = AppDomain.CurrentDomain.BaseDirectory;
}
else
... {
path = AppDomain.CurrentDomain.BaseDirectory + "Bin\";
}
if (System.Environment.CurrentDirectory == AppDomain.CurrentDomain.BaseDirectory) // Windows应用程序则相等
... {
path = AppDomain.CurrentDomain.BaseDirectory;
}
else
... {
path = AppDomain.CurrentDomain.BaseDirectory + "Bin\";
}