473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Command Line Programming

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
5 1198

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
>> 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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Edd Dawson | last post by:
Hi. I have a strange problem involving the passing of command line arguments to a C program I'm writing. I tried posting this in comp.programming yesterday but someone kindly suggested that I'd...
25
by: David Bernier | last post by:
I'd like to pass on the command line two filenames. As for example: my_executable filename_1 filename_2 I haven't done any C programming with command line arguments so far. I'm familiar...
34
by: Roman Mashak | last post by:
Hello, All! I'm implementing simple CLI (flat model, no tree-style menu etc.). Command line looks like this: <command> <param1> <param2> ... <paramN> (where N=1..4) And idea is pretty simple: ...
8
by: djc | last post by:
I'm new to this and was wondering what the options are for interpreting the command line using a CLI program. Specifically methods for interpreting the parameters passed to the program on the...
25
by: Tim Zych | last post by:
Is there keystroke combination that will clear the command window in Visual Studio.Net? Or, is there a way for me to clear it in vb.net code, prior to my code running? Thanks.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.