I'm working with reflection and my target DLL does reflection too. My doubt is when my target DLL execute this line of code
string cachePath = System.Reflection.Assembly.GetExecutingAssembly().Location;
cachePath = Path.GetDirectoryName(cachePath);
Whats the path result of GetExecutingAssembly method? 'because it is throwing "path is not legal form " exception.
I tried to use
System.Diagnostics.Debug.WriteLine(cachePath);
But it didn't show the message.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire