I have a console application ( MyProgram.EXE ) that references the Utility assembly.
In my Utilities assembly, I have code that does:
Dim asm As Assembly = Assembly.GetExecutingAssembly() Dim location As String = asm.Location Dim appName As String = System.IO.Path.GetDirectoryName(location) Conole.WriteLine("AppName is: {0}", appName)
When I call it from MyProgram.EXE , I get " AppName is: Utilities.dll "
What I want is " AppName is: MyProgram.EXE "
What am I doing wrong?
coson
source share