If you download and install Visual Studio Professional or Ultimate you get the specification installed on your system at the directory:
- C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC#\Specifications\1033\
- If you are using Visual Studio Express 2013, then you will need to search for ECMA-334
- The no-cost ISO standard can be found at: http://standards.iso.org/ittf/PubliclyAvailableStandards/c042926_ISO_IEC_23270_2006(E).zip
And really it is an interesting read. Really. Ok, maybe not a beach read, but…let’s take a look at this breathtaking, griping document. If you are into programming with Java, feel free to check Java’s ISO or ECMA standard out. Oh you can’t. There isn’t one a standard for Java, it’s owned by Oracle.
If you want to get started with any language these days you start with “Hello World”. In Part 1. Introduction, the basic Hello World is given in the example in paragraph 1.1 Hello World, which means there is a standard for “Hello World”.
Open Notepad and Copy and paste the “Hello World” example code from the Language Specification, it will look like the following without all of the goofy arrows, green box and voice bubble.
Compiling your code without Visual Studio
Why would you compile code without Visual Studio? Well there are many reasons, but you might want to do an automatic build after everyone goes home for the day as an example.
Developer Command Line, how to start
For Visual Studio 2013 in Windows 8 or Windows 8.1: reference: http://msdn.microsoft.com/en-us/library/vstudio/78f4aasd(v=vs.120).aspx
On the Start screen, type Visual Studio, and then choose Visual Studio Tools. (To access the Start screen, press the Windows logo key on your keyboard.)
In File Explorer, choose Developer Command Prompt for VS2013.
Compiling “Hello World” from command line
You would do this from the command line, and here is how you do it.
- First, make sure to save the Notepad file with the extension *.cs, for instance you might save it as: HelloWorld.cs and make sure to save it in a folder that is easy to remember or type.
- Open the Developer Command Prompt if you haven’t already, it will look like this:
- Navigate to the location of your “HelloWorld.CS” file
- You would use a “Batch” file to do your builds, you could use PowerScripts or other tools to schedule the Batch file to run daily or on a schedule.
This is an easy way to get started with Visual Studio if you are intimidated by the Visual Studio IDE initially, you can use Notepad to build simple applications for testing using C#.