A
Alexander Baranovsky
Hello friends,
How I can determine full path of Microsoft.Basic.dll?
Thanks,
Alexander
How I can determine full path of Microsoft.Basic.dll?
Thanks,
Alexander
Alexander Baranovsky said:How I can determine full path of Microsoft.Basic.dll?
Herfried K. Wagner said:Alexander Baranovsky said:How I can determine full path of Microsoft.Basic.dll?
\\\
Imports System.IO
Imports System.Reflection
.
.
.
For Each asm As [Assembly] In AppDomain.CurrentDomain.GetAssemblies()
If Path.GetFileName(asm.Location) = "microsoft.visualbasic.dll" Then
MsgBox(asm.Location)
Exit For
End If
Next asm
///
How I can determine full path of Microsoft.Basic.dll?
Dim type As type = GetType(Microsoft.VisualBasic.Collection)
Debug.WriteLine(type.Assembly.Location)
Alexander,
In addition to the other comments:
Short answer: Its in the GAC.
Long answer: Use code similar to:
Dim type As type = GetType(Microsoft.VisualBasic.Collection)
Debug.WriteLine(type.Assembly.Location)
However be aware its in the GAC & you really shouldn't rely on the disk
location as the GAC can keep multiple versions of the same assembly.
NOTE: Microsoft.VisualBasic.Collection is a type that I know is currently
(.NET 1.0 & 1.1) in the Microsoft.VisualBasic.dll, the above only works for
types that you know are in the specific assembly...
--
Hope this helps
Jay [MVP - Outlook]
T.S. Bradley - http://www.tsbradley.net
| Hello friends,
|
| How I can determine full path of Microsoft.Basic.dll?
|
| Thanks,
|
| Alexander
|
|
|
System.Reflection.Assembly vb =
System.Reflection.Assembly.Load("Microsoft.VisualBasic, Version=7.0.5000.0,
Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a");