I have Visual Basic Standard Edition, which as far as I can tell, will not compile classes into a dll's (through the gui anyway). I know it can be accomplished using the VBC.exe and some command line arguments but I am not sure which arguments I should be using.
I thought this would work (a modified version of something I found on the Internet) but it doesn't.
vbc /t:library /r:System.dll class1.vb
It give me errors on every line. Is it because I don't have any Imports in the class? Is there a better way to do this?
By the way, this is how my class looks:
Just in case you are wondering this is a sample from a learn VB.Net book.Code:Public Class Class1 Function about() As String Dim str1 As String = "About ClassLibrary1" & _ StrDup(2, vbCr) & _ "This is my story" & vbCr & _ "This is my song." Return str1 End Function End Class




Reply With Quote