This is probably the wrong section so if it is, please move this. I'm thinking about trying out C#. I don't want to use Visual C#, I want to do everything in command prompt (compiling, etc...). I've checked out The New Boston's tutorials but he uses Visual C# plus he starts out by making Windows Form Application. I want to start out with simple command line stuff like printing stuff, etc. Are there any tutorials that do this? It would also be a plus if they tell you how to install csc.exe to compile applications in the command prompt.
C# Tutorial Without Visual C#?
Page 1 of 12 Replies - 1121 Views - Last Post: 29 April 2012 - 09:58 AM
Replies To: C# Tutorial Without Visual C#?
#2
Re: C# Tutorial Without Visual C#?
Posted 28 April 2012 - 04:57 PM
I'll say this about your request.
There are numerous tutorials on how to use csc.exe to compile code outside of some IDE.
There are even more numerous tutorials to learn to code using C#.
I'm going to bet that the two together are rare. Thing is, you can just find one of each, and combine on your own. Just look for tutorials on 'Console Applications', and ignore the Visual Studio (or monodevelop, or other IDE) parts of the tut.
Creating console apps are pretty simple though. You just really need a single class file with a static Main method:
There are numerous tutorials on how to use csc.exe to compile code outside of some IDE.
There are even more numerous tutorials to learn to code using C#.
I'm going to bet that the two together are rare. Thing is, you can just find one of each, and combine on your own. Just look for tutorials on 'Console Applications', and ignore the Visual Studio (or monodevelop, or other IDE) parts of the tut.
Creating console apps are pretty simple though. You just really need a single class file with a static Main method:
using System;
namespace MyExampleProgram
{
public class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
Console.ReadLine("");//wait for user to hit enter before closing program
}
}
}
#3
Re: C# Tutorial Without Visual C#?
Posted 29 April 2012 - 09:58 AM
I'm not sure what you mean by not wanting to use "Visual C#". "Visual" has nothing to do with the type of project (forms/console) or the IDE.
"Visual C#" is Microsoft's implementation of the C# language specification.
http://en.wikipedia...._Visual_C_Sharp
I suppose you could use Mono if you don't want to use Microsoft's C#, but I don't understand why.
As to csc, if you've installed the Windows SDK, or if you've already installed VS.
On a more personal note, I'm wondering why you would go through all the trouble learning the command line methods of writing C#. This isn't Java...I've been working with C# for over 5 years professionally and I've never once had to compile code outside of Visual Studio. I know the basics of how to do it, but I've never once needed it.
"Visual C#" is Microsoft's implementation of the C# language specification.
http://en.wikipedia...._Visual_C_Sharp
I suppose you could use Mono if you don't want to use Microsoft's C#, but I don't understand why.
As to csc, if you've installed the Windows SDK, or if you've already installed VS.
On a more personal note, I'm wondering why you would go through all the trouble learning the command line methods of writing C#. This isn't Java...I've been working with C# for over 5 years professionally and I've never once had to compile code outside of Visual Studio. I know the basics of how to do it, but I've never once needed it.
Page 1 of 1

New Topic/Question
Reply


MultiQuote




|