• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[C#] Need help with the simple "Hello World" script.

Status
Not open for further replies.
Elite Diviner
Joined
Dec 1, 2007
Messages
483
Reaction score
0
Hey.

The problem I have is, I wrote the simple "Hello World" script in Notepad and saved it as "First.cs" , then I went into Visual C#, I ran the VS 2008 command prompt, typed in "csc First.cs". After it started to run it's normal course it gave me this error;

warning CS1668: Invalid search path 'C:\Program Files\Microsoft
SDKs\Windows\v6.0A\lib' specified in 'LIB environment
variable' -- 'The system cannot find the path specified. '


I don't have a clue what's going on as I'm just starting to learn C#.

Any help would be greatly appreciated.

Thanks,
Grey
 
Newbie Spellweaver
Joined
Sep 18, 2006
Messages
17
Reaction score
0
if you have VS2008 why the hell you use notepad to write stuff?
create a new project on VS then run it, you won't have this issue :p

edit: that's an error related to your Window's environment variables, not directly related to VS or C#...
 
Elite Diviner
Joined
Dec 1, 2007
Messages
483
Reaction score
0
I wrote it in notepad because I was following a tutorial.

I'll just stick with the program, thanks for the answer.
 
Status
Not open for further replies.
Back
Top