Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / January 2004

Tip: Looking for answers? Try searching our database.

C# compilation (a tough question?)...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Seunarayan - 19 Jan 2004 18:03 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.