Hello all,
I need to know if there is a way for me to compile a C# code file
programmatically. I know that csc.exe can be called via an application but
my target audience may not have .NET SDK installed. Oh, I'm using .NET v1.0
Cheers (in advance)
Alan
Bennie Haelen - 19 Jan 2004 23:54 GMT
Hi,
You should be able to use the :
System.CodeDom.Compiler.CodeCompileUnit()
method.
I am not 100% sure though that this requires that the SDK is installed...
Regards,
Bennie Haelen
> Hello all,
> I need to know if there is a way for me to compile a C# code file
[quoted text clipped - 4 lines]
>
> Alan
"Shawn Farkas" - 22 Jan 2004 20:24 GMT
Hi Alan,
You can use CodeDOM in order to compile programatically, however you should also note that the C# compiler is in the .Net framework
package, not the SDK, so invoking CSC directly is also an option for you.
-Shawn
http://blogs.msdn.com/shawnfa

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they
originated.
--------------------
>From: "Alan Seunarayan" <w@xyz.com>
>Subject: C# compilation (a tough question?)...
[quoted text clipped - 19 lines]
>
>Alan
Phil Wilson - 25 Jan 2004 18:48 GMT
ICodeCompiler is your friend!

Signature
Phil Wilson
[MVP Windows Installer]
> Hello all,
> I need to know if there is a way for me to compile a C# code file
[quoted text clipped - 4 lines]
>
> Alan