Computing.Net > Forums > Programming > I got a problem with C#'s csc.exe

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

I got a problem with C#'s csc.exe

Reply to Message Icon

Original Message
Name: El-Trucha
Date: September 28, 2004 at 14:05:46 Pacific
Subject: I got a problem with C#'s csc.exe
OS: Windows 2000 Pro
CPU/Ram: 1.4 GHz/128 MB
Comment:

Hello every1!!
OK...I got a C# course that I bnought...on the 4th lesson I think they sent me Visual C# .NET...:D and I've been doing programs with it with no problems...(except syntax errors...:P)
But now, (Visual C# .NET is installed on a Windows 2000 virtual machine...), I was doing things and my virtual hard file broke...:(
So I had 2 reinstall Win2k and VC#...:(
I reinstalled it, but had some troubles during install, and I had 2 stop the installation while it was on the 3rd CD of the MSDN library...
I tried coming back, and it finished installing without problems...
But now, I cant compile neither with csc.exe or the Visual Studio IDE!!! :@
I remember having 2 set csc.exe on my path (which I just did) and doing something else before starting programming...I had the instructions, but I lost them!! :@
What was that I had 2 do??
Maybe set something in a configuration file, I think I remember something about that...
Thanx!! ;)

PS:
The errors I get are:
csc.exe:

error CS2001: Source file 'test.cs' could not be found
fatal error CS2008: No inputs specified

and in the Visual Studio IDE I get:

Program '<filename>' does not have an entry point defined

What do I do?!!
PLZ HELP!!! :)
Thanx!! ;)

El-Trucha


Report Offensive Message For Removal


Response Number 1
Name: El-Trucha
Date: September 28, 2004 at 15:50:27 Pacific
Reply: (edit)

Ohh, forget the old csc.exe problem...I had a double extension and view file extensions turned off...:@
Now I get the same error on both, csc.exe and the VC# ide...:

Program '<filename>' does not have an entry point defined

What do I do??
Thanx!! ;)

El-Trucha


Report Offensive Follow Up For Removal

Response Number 2
Name: El-Trucha
Date: September 28, 2004 at 15:56:15 Pacific
Reply: (edit)

Now I solved all the problems!! :D
I downloaded the .NET Framework SDK with the free C# compiler, and since it's a new version, it gave me a different error, this one saying that it didnt have a Main() method...sorry for making this post so long, this was really stupid...:P

El-Trucha


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge
Poll History




Data Recovery Software