Following are the way to get the physical path of an assembly.
string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase);
or
string = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
No comments:
Post a Comment