CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2013
    Posts
    3

    Very new to this language

    I just started learning C# today, I ordered a book but I couldn't wait to get started.

    My experience: alot of Python not much else...

    I looked around your learning C# sticky but it didn't answer my question so here it is.

    I've added the C# compiler csc.exe path to my Environment Variables System Variables field in Windows. I have command line open and am in a folder with three .cs files.

    To compile them I type csc.exe FILENAME in the command prompt at the folder location of the FILENAME correct?

    This does not work, it tells me: 'csc' is not recognized as an internal or external command, operable program or batch file. But I've added the compilers executable path to my System Variables. What is wrong?

    Thank you for your responses and patience with my ignorance.

  2. #2
    Join Date
    Mar 2013
    Posts
    3

    Re: Very new to this language

    also I'm using Microsoft Visual C# 2010 to compose code.

  3. #3
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Very new to this language

    Always use [code][/code] tags when posting code.

  4. #4
    Join Date
    Mar 2013
    Posts
    3

    Re: Very new to this language

    Thanks for that resource, it ended up being much simpler than that.

    Once you change your environment variables such as 'Path' the computer MUST be rebooted before the changes will take affect.

    also it's weird but my version of the SDK didn't come with a vsvars32.bat file for reconfiguration of the path. So I guess you have to do the path change manually.

    Happy coding!
    -Thomas

  5. #5
    Join Date
    Feb 2011
    Location
    United States
    Posts
    1,016

    Re: Very new to this language

    Once you change your environment variables such as 'Path' the computer MUST be rebooted before the changes will take affect.
    I don't think that is correct. I have modified the path environmental variable before without needing to restart for effect. However, open command line consoles will not detect the change if they were opened before the change.
    Best Regards,

    BioPhysEngr
    http://blog.biophysengr.net
    --
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured