I have created a console application in VS2012
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hello");
}
}
}
When I try to compile with csc.exe it wont work
D:\temp\ConsoleApplication1> c:\windows\microsoft.net\framework\v4.0.30319\csc.exe /out:d:\temp\test.exe .\Program.cs
Microsoft (R) Visual C# Compiler version 4.6.1055.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
D:\temp\ConsoleApplication1>
Why is this happening? It will build in VS no problem