I want give my plugin and some other files in one folder to colleges this file my plugin need ( RHFiles…text files)
and they can install it on C: or D:…
this is the reason if you have c# program i use
appPath = Application.StartupPath;
but insiden from Rhino I get
C:\Program Files\Rhinoceros 5.0 (64-bit)\System
so I look for some other.
if I use know
string assemblyLocation = System.Reflection.Assembly.GetExecutingAssembly().Location;
string assemblyPath = System.IO.Path.GetDirectoryName(assemblyLocation);
RhinoApp.WriteLine(assemblyPath);
If you get My.Application.Info.DirectoryPath() you also get the same as you want
You get the Plugin Folder. But my question is. Is My.Application.Info.DirectoryPath() wrong to use?
Should I start using?
string assemblyLocation = System.Reflection.Assembly.GetExecutingAssembly().Location;
string assemblyPath = System.IO.Path.GetDirectoryName(assemblyLocation);