help of setting up the enviroment

i've a book called C# insider 2nd edition, in the begiing of the book, i couldnt run the HelloWorld.cs because it says cant find the commmand csc. (the book says to run CSC HelloWorld.cs in cmd, and it appeared this message.). the book says i need to set up something in "Environment Variables" i know that book was talking about C#2.0 and in .net Framework 1.1, C#.net 2006 is c#3.0 and .net framework 2. so im not sure how to set it up in .net framework 2. :/

Answer this question

help of setting up the enviroment

  • chill_pill

    well ya sorry my bad it was actually c#2005 express edition,

    but i still cant find :

    e:/program files/microsoft visual studio8/ or anything close to this name

    e:/program files/comon files/ms shared/ <there r VBA,VGX,VS7debug but not VSA.

    the only thing i could find is E:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

    :/

    -yonk


  • bollwerj

    well ya i actually found this folder, but the other 2 i didnt find them...

    i bet in order to make it runing all of the 3 are required.


  • UserVBA

    As far as I am aware, there is no such thing as VS2006, and .NET 2.0 is C# 2.0.

    None of that makes any difference, environment variables are a function of the OS. You set them up the same as the book says. All that would change is the value you add to the PATH variable, depending on where it's set up on your system.

    I would not bother anyhow, you're better off running compilation from the IDE, you'll never do it from the command line, unless you need to run build scripts.



  • Shaun Wilde

    There is no such thing as VS2006.

    Did you look to see where it was Best guess:

    E:\Program Files\Microsoft Visual Studio 8\VC\bin

    E:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv

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

    or

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

    if you run windows 2000 ( assuming the IDE runs on W2000 )



  • Evan Tupper

    hi,

    add it like this " ;%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727 "

    hope this helps



  • manoj mishra

    thanks alot buddy. *cheers*
  • Sean Alford

    hi,

    i don't bet i has it working like that without any extras, just add it as its without remove or replace the %SystemRoot%

    hope this helps



  • Piers Lawson

  • help of setting up the enviroment