DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: C# -- Help Needed -- Where is CRC.EXE - .NET SDK Installed  (Read 8,860 times)

SkyIDE

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 245
    • Participated in NANY Challenge Once
Hi Everyone

PLEASE don't let this discourage you as I can assure you -- once I find my way around this, I will succeed.

I am confident. The logic is all the same!


Ok, I am new to .NET, my first language is C++ so please don't mind if I ask a stupid question or if I sound like a complete newbie :) I've looked at the C# syntax and I understand it 100% since it is like Java which is like C++. There will be no problem adding support. I mean, I even added a Pascal support (which is a different syntax) and had never done Pascal before so C# is no problem.


Here is the problem:

I thought I already had the C# compiler installed and I thought it was cl.exe but it turns out it is not. It is csc.exe.

I installed .NET 2.0 SDK, and .NET 3.0 SDK but csc.exe is still missing! Where is this file? Isn't this the C# compiler?

I need it in order to add support for it in SkyIDE. I need to make SkyIDE understand csc.exe's output. I was about to start writing the compiling bit for C# when I realised I am missing the compiler.


Ok, all I need to know is where to find csc.exe -- which package do I install. May be MS Visual Studio Express Edition?


Sash

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: C# -- Help Needed -- Where is CRC.EXE - .NET SDK Installed
« Reply #1 on: April 21, 2007, 12:41 PM »
For me, it's located in %WINDIR%\Microsoft.NET\Framework\{version}.
- carpe noctem

SkyIDE

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 245
    • Participated in NANY Challenge Once
Re: C# -- Help Needed -- Where is CRC.EXE - .NET SDK Installed
« Reply #2 on: April 21, 2007, 09:12 PM »
I found it!!! THANK YOU. We are back in business! Last time I "searched" it found nothing! Doesn't matter. It's here now :) Maybe I mispelled the word.
« Last Edit: April 21, 2007, 09:20 PM by SkyIDE »

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: C# -- Help Needed -- Where is CRC.EXE - .NET SDK Installed
« Reply #3 on: April 21, 2007, 10:24 PM »
There's probably some registry entr{y,ies} you can check for installation location, and perhaps even a nice way of detected the most recent version available - I have the following. Dunno if they came from Visual Studio, or dotNET updates from Windows Update...
Code
15-01-2007  00:55    <DIR>          v1.0.3705
24-01-2007  22:31    <DIR>          v1.1.4322
08-02-2007  12:50    <DIR>          v2.0.50727
- carpe noctem

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: C# -- Help Needed -- Where is CRC.EXE - .NET SDK Installed
« Reply #4 on: April 22, 2007, 04:34 AM »
On a WindowsXP machine, the command line "csc.exe" compiler should be located in this directory:

C:\WINDOWS\Microsoft.NET\Framework\

On a WinNT machine it should be here:

C:\WINNT\Microsoft.NET\Framework\

Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

SkyIDE

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 245
    • Participated in NANY Challenge Once
Re: C# -- Help Needed -- Where is CRC.EXE - .NET SDK Installed
« Reply #5 on: April 22, 2007, 06:43 AM »
Thanks guys!

Yes f0dder, I have the same folders + the 3.0 one because I installed it while searching for csc.exe :) I don't know what happened. I checked the "search" history in Start->Search and no mispellings. The only logical explanation would be the following. I didn't restart the PC after installation. So may be the files got auto-generated or something AFTER the restart? Ahh well, it's here now. I should have restarted the PC anyway before I spoke.

By the way, I really like the way C# looks. It makes me wonna learn it. It looks just like Java (I knew this since the very first day it got introduced). This .NET got released after MS settled the issue with SUN Microsystems over MS's modification of Java and making the programs built wth J++ incompatible with other operating systems than Windows. I remember later they introduced .NET and C# etc....
« Last Edit: April 22, 2007, 06:47 AM by SkyIDE »

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: C# -- Help Needed -- Where is CRC.EXE - .NET SDK Installed
« Reply #6 on: April 22, 2007, 03:03 PM »
kyrathaba: that's only if it hasn't been installed to a custom folder - better use the %windir% environment variable or read the install location from the registry.

SkyIDE: files should have been copied there while installing, not after reboot. But the built-in search thingy of Windows is annoying sometimes... like skipping certain folders depending on configuration options and such.
- carpe noctem

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: C# -- Help Needed -- Where is CRC.EXE - .NET SDK Installed
« Reply #7 on: April 22, 2007, 06:44 PM »
Good point f0dder.  Yes, best to make doubly sure with the environment variable %windir%. 

Quote
By the way, I really like the way C# looks. It makes me wonna learn it.

Yes, it has a concise, elegant syntax (in my eyes, anyway)
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Original address: https://www.donationcoder.com/forum/index.php?topic=8196.0