473,506 Members | 13,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple solution compiler?

pnp
Is there a way to make a simple compiler that builds cs projects in a
solution?

thanks in advance,
peter
Nov 17 '05 #1
2 1653
Hi,
You can use the following command in a batch file (.bat)

devenv "<solutionfile>" /build "<debug/release>"

This builds all the projects under the .sln file

"pnp" wrote:
Is there a way to make a simple compiler that builds cs projects in a
solution?

thanks in advance,
peter

Nov 17 '05 #2
Microsoft.CSharp.CSharpCodeProvider p = new CSharpCodeProvider();
ICodeCompiler compiler = p.CreateCompiler();
CompilerParameters options = new CompilerParameters(new string[] {"mscorlib.dll", "System.dll"}, myOutputAssemblyPath, true);
CompilerResults res = compiler.CompileAssemblyFromFileBatch(options, fileNames);
CompilerErrorCollection errors = res.Errors;
Assembly a = res.CompiledAssembly;

"pnp" <pnp.@.softlab.ntua.gr> wrote in message news:O4**************@TK2MSFTNGP10.phx.gbl...
Is there a way to make a simple compiler that builds cs projects in a
solution?

thanks in advance,
peter

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3659
by: Patchwork | last post by:
Hi Everyone, Please take a look at the following (simple and fun) program: //////////////////////////////////////////////////////////////////////////// ///////////// // Monster Munch, example...
8
5094
by: Ross A. Finlayson | last post by:
I'm trying to write some C code, but I want to use C++'s std::vector. Indeed, if the code is compiled as C++, I want the container to actually be std::vector, in this case of a collection of value...
1
1106
by: Newbie \(C#,Asp.net\) | last post by:
Hi I have got three questions ,sorry if they are a little long: 1) Dose it really matter if I have using statements at the begining of my codes that I don't use its classes ? dose it really hug...
9
2177
by: shaun | last post by:
Dear all, I realized an error in a previous post, I reproduce it here because I'm still not sure how to solve it: I want to make a templated function which points to one-past-the-end of a...
5
10619
by: Joel | last post by:
In the course of my project, I must include some custom logic and would like to integrate a small script language in my application for that purpose. In C++, I used the LUA script language and I...
10
1682
by: michael | last post by:
Hi All, I have the following: ------------ file constants.h--------- #ifndef constants_ #define constants_ const int FOO = 1; const int BAR = 2;
11
1484
by: aaragon | last post by:
Hi everyone, I'm trying to create two simple template classes where one of them depends on the other to initialize its member integer variable. After some time, I decided to post a message here...
30
3472
by: galiorenye | last post by:
Hi, Given this code: A** ppA = new A*; A *pA = NULL; for(int i = 0; i < 10; ++i) { pA = ppA; //do something with pA
6
1505
by: Christof Warlich | last post by:
Hi, can anyone tell how to convince the compiler to accept the third line in the example below? I need this parameter sequence because I want to define a default argument for T , e.g.:...
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7023
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5617
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5037
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.