G
Guest
Hello,
I'm trying to get the TypeForwardedTo attribute working on visual basic, but
when I move my type to another type library, recompile both type libraries
(but not the client app, of course), the client application still complaints
that it cannot find the 'moved' type.
On the Internet there are lots of examples, all in c# but somebody somewhere
also complains about the fact that it seems to have no effect on vb...
Here is my attribute declaration:
<Assembly:
TypeForwardedTo(GetType(segonallibreriadeproves.ClasseDeLlibreriesDeProvesALeiter))>
And here's the simple type I moved:
Public Class ClasseDeLlibreriesDeProvesALeiter
Dim _missatge As String
Sub New(ByVal missatge As String)
_missatge = missatge
End Sub
Public Property missatge() As String
Get
Return _missatge
End Get
Set(ByVal value As String)
_missatge = value
End Set
End Property
Public Sub MostraMissatge()
MsgBox(missatge)
End Sub
End Class
I'm trying to get the TypeForwardedTo attribute working on visual basic, but
when I move my type to another type library, recompile both type libraries
(but not the client app, of course), the client application still complaints
that it cannot find the 'moved' type.
On the Internet there are lots of examples, all in c# but somebody somewhere
also complains about the fact that it seems to have no effect on vb...
Here is my attribute declaration:
<Assembly:
TypeForwardedTo(GetType(segonallibreriadeproves.ClasseDeLlibreriesDeProvesALeiter))>
And here's the simple type I moved:
Public Class ClasseDeLlibreriesDeProvesALeiter
Dim _missatge As String
Sub New(ByVal missatge As String)
_missatge = missatge
End Sub
Public Property missatge() As String
Get
Return _missatge
End Get
Set(ByVal value As String)
_missatge = value
End Set
End Property
Public Sub MostraMissatge()
MsgBox(missatge)
End Sub
End Class