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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ManagedCompiler?

Status
Not open for further replies.

wawanz

Programmer
Aug 29, 2002
62
ID
Dear guys,

I'm using C# 2.0, I have a Windows application that references several dll's. Each time I modify a particular dll, I have to recompile the other dll's that references it, and finally compile the application that references all those dll's.

I'm thinking of building a console application (rather than a batch file) that would do all that, so I would just run that console application, and it would automatically compile everything in the right order, right references, and also write to a log file.

I came across the ManagedCompiler class (Microsoft.Build.Tasks namespace), but I couldn't find sufficient documentation on MSDN, so I can't really tell if that class would do what I think it would do. And also I couldn't find examples on compiling through an application, although there were lots on command line compilers.

So, would anyone please show me the right direction? 'Cause this application it would save a lot of time, rather than compiling the dll's and the application one by one. Or anyone has a better solution?

Thank you.


 
This sounds like a good job for NAnt.


I use it for all my builds, both at home and at work. Basically, you have an XML file which describes the build process. It has one or more targets, which are build operations (think of them as subroutines). You can call the C# command-line compiler (csc.exe) easily, but then you have to manage the dependencies yourself. Or you can tell Visual Studio (devenv.exe) to do the building.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Thanks chiph, for your reply. But I was thinking of building my own builder application. Know any threads/sites that would help me start?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top