By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,154 Members | 1,405 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,154 IT Pros & Developers. It's quick & easy.

Command Line Programming

P: n/a
Does Microsoft Visual C# 2005 Express Edition support command line
programming the way Microsoft Visual C++ 2005 Express Edition does? (thumbs
up for that)
Mar 31 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a

Martijn Mulder wrote:
Does Microsoft Visual C# 2005 Express Edition support command line
programming the way Microsoft Visual C++ 2005 Express Edition does? (thumbs
up for that)


Yes it does. Below is a sample.

-----------Code --------------------

using System;

namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
if (args.Length > 0) {
foreach(string arg in args) {
System.Console.WriteLine("ARG = {0}", arg);
}
}
else {
System.Console.WriteLine("No arguments");
}
}
}
}

Mar 31 '06 #2

P: n/a
>> Does Microsoft Visual C# 2005 Express Edition support command line
programming the way Microsoft Visual C++ 2005 Express Edition does?
(thumbs
up for that)

Yes it does. Below is a sample.

-----------Code --------------------

<SNIP>

Ah, very good. Thank you for that. But I meant to ask, can I program FROM
the command line, from the DOS-prompt so to say. A black screen with white
letters, preferred editor VI ;-) and all the compile logic stored in
batchfiles. Than I only access the Integrated Development Environment IDE to
create an empty project for me and fill it up using my own tools. Is that
kind of development supported by the C#-environment?
Mar 31 '06 #3

P: n/a
Yes. You can do that. Use either NAnt http://nant.sourceforge.net/ or
MSBuild http://msdn2.microsoft.com/en-us/lib...52(VS.80).aspx
to compile from the command line.

Thanks,
Shyam

Mar 31 '06 #4

P: n/a
Hi,


Ah, very good. Thank you for that. But I meant to ask, can I program FROM
the command line, from the DOS-prompt so to say. A black screen with white
letters, preferred editor VI ;-) and all the compile logic stored in
batchfiles. Than I only access the Integrated Development Environment IDE
to create an empty project for me and fill it up using my own tools. Is
that kind of development supported by the C#-environment?


What? VI ? Oh man you are a masoquist :)

Btw, you dont even need VS (what's the point of using VS if you are using
VI ) , all you need is the framework SDK , it comes with the compilers and
all you need to develop with anything else than VS
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Mar 31 '06 #5

P: n/a
On Fri, 31 Mar 2006 08:37:50 -0500, "Ignacio Machin \( .NET/ C# MVP
\)" <ignacio.machin AT dot.state.fl.us> wrote:
What? VI ? Oh man you are a masoquist :)

Btw, you dont even need VS (what's the point of using VS if you are using
VI ) , all you need is the framework SDK , it comes with the compilers and
all you need to develop with anything else than VS


It isn't even nescessary to get the SDK. It is fully possible to
compile a c# application with just the .Net runtime installed. The
compiler is included with the runtime. Look for it in the following
location "Windows\Microsoft.NET\Framework\v?????\csc.ex e".

Having the sdk installed is nice though, since it includes lots of
documentation of the framework, as well as some tools that are useful.

--
Marcus Andrén
Mar 31 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.