In VS.net 2005 C# the compiler class has been made obsolete.
Is there any other class with which i can compile my .cs file.
I want to compile .java file through VS.net 2005 visualc# code..
How can I do that... How to execute that Please help me at the earliest.

Urgent Help Needed : Cmoiling c# or JAVA class files in VS.net2005 Visual C#
Ted Herrman
If something is made obsolete there is usually something better to use instead. If you read the entry for Compiler class.
http://msdn2.microsoft.com/en-us/library/microsoft.csharp.compiler(VS.80).aspx
The recommended alternative is Microsoft.CSharp.CSharpCodeProvider and System.CodeDom.Compiler.ICodeCompiler. The CSharpCodeProvider and CodeDom ICodeCompiler provide a much richer set of functionality for specifying how to launch the compiler.
Instead of the compiler class use the CSharpCodeProvider. http://msdn2.microsoft.com/en-us/library/microsoft.csharp.csharpcodeprovider(VS.80).aspx
To compile java files you could install the Java SDK and call the java compiler as an external application from inside your C# application.
Chouproute
I used CSharpCodeProvider. And it worked properly for c# code compilation.
But It doesn't work JAVA files.
I want to call an external compiler of JAVA (javac and java) from my c# application.
How can I do that Is there any class defined which calls the external compiler
Is there a class which executes commands on command line from my c# application
Regards,
Vinay
Zafar Ullah
hi,
try something like this
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=332005&SiteID=1
hope this helps
Mafalda con Petalos
hi,
i don't know but you can take see mono project http://www.mono-project.com/Main_Page
hope this helps