none
Where is csc.exe in NET 2.0 SDK? RRS feed

  • Question

  • To all,

    I have downloaded the .NET Framework Software Development Kit (SDK) version 2.0 and there doesn’t seem to be a csc.exe.

    I have C# Express installed, but I am just learning the language and it is my experience that to really learn a language it is best learned without the assistance of a fancy GDE.

    So I just want a cmd prompt.

     Additionally the book I am using is an older copy of Jesse Liberty’s ‘Programming C#’ (O’Reilly, 2001) and the examples use csc.exe.

     From what I can tell it should be under ‘C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin’, but it isn’t.

     Help?


    John Garrett
    Friday, December 1, 2006 1:27 AM

Answers

All replies

  • its:

    C:\windows\microsoft.net\Framework\v2.0.50727\csc.exe

    this is in the installation directory of the .NET Framework

    Friday, December 1, 2006 1:32 AM
    Moderator
  • Ok,

    This is the kit I am downloading:

    http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=FE6F2099-B7B4-4F47-A244-C96D69C35DEC


    No csc.exe, is there another SDK?

    Thanks for respondng so quickly.

    John
    Friday, December 1, 2006 2:01 AM
  • no worries. you need to download the .NET Framework, its included in that. not sure about the SDK however (wouldnt see why it wouldnt be included....) - tried a search on the computer?

    .NET Framework 2.0 redistributable:

    http://www.microsoft.com/downloads/details.aspx?familyid=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en

    Friday, December 1, 2006 2:05 AM
    Moderator
  • Downloading it now.

    Hello World, here I come!
    Friday, December 1, 2006 3:02 AM
  • Life is good:

    Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
    for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
    Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

    found at:

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

    Thanks again.


    Friday, December 1, 2006 3:16 AM
  • no worries ;-)
    Friday, December 1, 2006 3:39 AM
    Moderator
  • Hi, in case your windows is not installed on C (and to be more generic), you could also use:

    - for command line prompt:

    path=%path%;%windir%\microsoft.net\Framework\v2.0.50727

    - for powershell:

     Set-Alias csc ((get-content env:windir)+"\microsoft.net\Framework\v2.0.50727\csc.exe") 
    


    And then, after each one, you are now immediately able to invoke csc

    Cheers

    Monday, June 28, 2010 8:48 PM