473,396 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C# compiler and windows directory

Hello All,

Many people ask this question. I have installed .Net framework I wrote a
program but I can't find csc.exe. I have to tell them that it is inside
windows directory. But I myself don't understand what is the csc.exe
compiler doing over there. Why is the C# compiler in the windows
directory? Is the compiler a part of windows? or is windows os is a part
of the compiler.

Why can't it be in its own directory? (like all other compilers do?).

regards,
Abhishek.

Nov 15 '05 #1
4 3565
It's not in the WINDOWS directory
It's in the Windows\Microsoft.NET\Framework\v.1.0.3705 (framework 1.0)
and/or v.1.1.4322 (framework 1.1).
Or WinNT\....

csc.exe is part of the framework, and the framework home directory is
v.1.0... or v.1.1...

You will find a whole bunch of other files there too.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #2
Hello Morten,
It's not in the WINDOWS directory
Let me rephrase my question.
Why is the "Microsoft.NET\Framework\v.1.0.3705" directory under windows?
(or whereever your WINDIR variable points to. c:\WinNT for example)

What is the rational behind keeping it there and not under "Program Files"
You will find a whole bunch of other files there too. Yes I know... but "why" are those files there.

Going by Common sense all the subdirectories under the Windows
(%WINDIR%) directory are in some way related to the OS functionality.
application specific files should not be present there. (Microsoft
themselves said this in TECH ED)

Yet the C# compiler seems to break this.

I just want to know if there is some special undocumented reason for
this? Or just vanilla old habit of dumping things in %WINDIR%
(c:\windows in my case).

regards,
Abhishek.
Morten Wennevik wrote: It's not in the WINDOWS directory
It's in the Windows\Microsoft.NET\Framework\v.1.0.3705 (framework 1.0)
and/or v.1.1.4322 (framework 1.1).
Or WinNT\....

csc.exe is part of the framework, and the framework home directory is
v.1.0... or v.1.1...

You will find a whole bunch of other files there too.


Nov 15 '05 #3
On Tue, 16 Sep 2003 14:12:42 +0530, Abhishek Srivastava
<ab******@nospam.net> wrote:
Hello Morten,
It's not in the WINDOWS directory
Let me rephrase my question.
Why is the "Microsoft.NET\Framework\v.1.0.3705" directory under windows?
(or whereever your WINDIR variable points to. c:\WinNT for example)

What is the rational behind keeping it there and not under "Program
Files"


Ah, my guess is that the framework is in the alley with dll files and other
system files, and therefore would be under windows instead of program files
which is far less secure in terms of accidentally deleting stuff.
You will find a whole bunch of other files there too. Yes I know... but "why" are those files there.

Going by Common sense all the subdirectories under the Windows (%WINDIR%)
directory are in some way related to the OS functionality.
application specific files should not be present there. (Microsoft
themselves said this in TECH ED)


Yep, framework is tightly tied to the OS.
Yet the C# compiler seems to break this.

I just want to know if there is some special undocumented reason for
this? Or just vanilla old habit of dumping things in %WINDIR% (c:\windows
in my case).


I don't know. Though there might be the odd chance that Microsoft
considers the framework tools to be too complicated or not something
everyone should use and therefore hides it. Then again, csc.exe etc are
framework tools and all the windows tools seem to be in some directory
under %WINDIR%.

But you are right. I also think the developer tools should be found under
Program Files. It's a bloody annoyance to traverse to
C:\Windows\Microsoft.NET\Framework\v1.1.4233 (since I'm too lazy to add a
path to it ;)

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #4

"Abhishek Srivastava" <ab******@nospam.net> wrote in message
news:ud**************@TK2MSFTNGP11.phx.gbl...
Hello Morten,
> It's not in the WINDOWS directory
Let me rephrase my question.
Why is the "Microsoft.NET\Framework\v.1.0.3705" directory under windows?
(or whereever your WINDIR variable points to. c:\WinNT for example)

What is the rational behind keeping it there and not under "Program Files"
> You will find a whole bunch of other files there too.

Yes I know... but "why" are those files there.

Going by Common sense all the subdirectories under the Windows
(%WINDIR%) directory are in some way related to the OS functionality.
application specific files should not be present there. (Microsoft
themselves said this in TECH ED)

Yet the C# compiler seems to break this.

I just want to know if there is some special undocumented reason for
this? Or just vanilla old habit of dumping things in %WINDIR%
(c:\windows in my case).

I think the framework is an OS component. With Longhorn I suspect we'll see
actual OS services using it, but it is a component as much as the win32 api
or a number of other libraries are.

I imagine the compiler is there because a) its probably easier on you to
have it in there, as any references it may have to other framework code will
resolve properly, b) it may well provide the managed csharp components or
pieces of those components to the framework(if anyone knows for sure, please
post).
regards,
Abhishek.
Morten Wennevik wrote:
It's not in the WINDOWS directory
It's in the Windows\Microsoft.NET\Framework\v.1.0.3705 (framework 1.0)
and/or v.1.1.4322 (framework 1.1).
Or WinNT\....

csc.exe is part of the framework, and the framework home directory is
v.1.0... or v.1.1...

You will find a whole bunch of other files there too.

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

188
by: Ilias Lazaridis | last post by:
I'm a newcomer to python: - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 - I've download (as suggested) the python...
2
by: Mike Fisher | last post by:
I'm seeing an error when I try to run/debug a web service. Although it doesn't happen every time, it does occur more than half of the times I hit F5. It appears to be returned by the the JIT...
3
by: cameron | last post by:
I compile my project. No errors. Then I hit my page and I get an Error in Application "/" I change nothing and recompile. Works fine. If I compile twice in a row, still get the error. I...
4
by: Frank Rizzo | last post by:
I have a batch script that is supposed to compile this script: vbc.exe /main:Form1 /target:winexe...
9
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
0
by: Jeff Dillon | last post by:
When I browse to a simple .aspx page, I get the error: Unable to create temp file in path 'c:\windows\system32\inetsrv\%SystemRoot%\TEMP\': The directory name is invalid. My TEMP variable is...
3
by: Russ | last post by:
I keep getting this message "The compiler failed with error code 2000" when pressing PF5 to run Debug. This is not a compile error, it gets past the compile. I get this when it tries to load up my...
1
by: abh1508 | last post by:
Following a release of code the following problem occurs on certain asp ..net pages. This is not a problem on other testing/demo environments. IIS seems to be creating certain files twice in the...
13
by: rufus | last post by:
Is there a C++ compiler for windows that can be run from the commmandline? I have only be able to find MS Visual Studio but its rather overkill since I also like to just use notepad for my code.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.