Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile CS file with VB.NET

Status
Not open for further replies.
Apr 3, 2005
32
US
I have Microsoft Visual Basic.NET version that doesn't have C# installed. And I have a CS file in C# that I hope I can compile and reference it into my project.
I'm very new at using this tool, so please help.
Thank you.
 
There was a post in this or another group that showed how to allow C++ modules into the lower versions of .net

It was titled something like "which version of dotnet to buy" it would have been in the last 10 days. (either here or in the vb.net forum..

Sorry I can't be more specific, but I think that finding it will solve your problmes.

Rob
 
the framework installed the commandline compiler for you and it is called csc.exe or you could compile it into a dll with sharpdevelop.

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Is there a way i can compile DGCheck.cs through the commandline, if so, what do I need to do to reference it to my ExamConn project.
Thank you very much!!!
 
Point csc.exe to your .cs file. You may need to set some command-line options to get it to work. You can find out the options by doing a csc /? Make sure you compile it to a class library (DLL) to make reuse easier.

Afterwards, it's a .NET assembly DLL like any other, and you can reference it in your VB.NET code without any problems.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top