Search code examples
c#windows-8csc

Which version csc.exe should I use?


I am following a tutorial to consume WSDL in a C# aplication:

http://my.execpc.com/~gopalan/dotnet/webservices/webservice_csharp_client.html

At step 2, it says do following:

C:\MyProjects\Cornucopia\WebService\Client>csc /t:library /r:System.Web.Services.dll /r:System.Xml.dll OIDServer.cs

But csc.exe was not in my path so ı have searched for it and the result:

enter image description here

There are 20 different csc.exe in my computer. Which one should I use? I am running Windows 8 x64 EE.


Solution

  • Usually you want to use the one in C:\WINDOWS\Microsoft.NET\Framework\vx.x.xxxxx\.

    Where the x.x.xxxxx is the Framework version you are targeting. So if I were trying to use the C# 4.0 compiler, I would use "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe"