Results 1 to 3 of 3

Thread: Compiling C# dll

  1. #1

    Thread Starter
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    Compiling C# dll

    When I compile my C# class into a dll to work with VB.NET I do the following: (from the command line)
    Code:
    C:\>csc /nologo /t:library /out:myClass.dll myClass.cs
    is there an easier way to compile it into a dll without having to add all of those switches???

    something like:
    Code:
    C:\>csc /out:myClass.dll myClass.cs
    I know the above doesn't work, but is there an easier way? (using the command line to compile, not the IDE)
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Easier? Why not just make a batch file?

    you also dont need /nologo and you dont need /out
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Load your class file with console proj , set the debug type to release , run your proj as exe , get your dll file from bin folder .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width