0

I want to compile a C# class using the command line in Visual Studio.

In VB I can use this line:

vbc /t:tlibrary /out:bin/myclassdll.dll /r:system.dll /r:system.data.dll myclass.vb

Can I do it with C#, do I have to add something in the web.config?

Thanks for any help.

2
  • 1
    Why are you compiling from the command-line? Why not in Visual Studio itself? Commented Mar 15, 2012 at 17:56
  • I never used visaul studio as a project ,I am writing only scripts Commented Mar 15, 2012 at 18:02

1 Answer 1

3
csc /t:tlibrary /out:bin/myclassdll.dll /r:system.dll /r:system.data.dll myclass.cs
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.