c# programming

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brett

    #1

    c# programming

    I have downloaded the .Net framework SDK v1.1, and I have visual studio.net
    2003. I can build and run the programmes in visual studio but I can't manage
    to run C# programs from the DOS command window. I type 'csc Filename.cs' in
    the command window but it just states ''csc' is not recognized as an internal
    or external command, operable program or batch file'. Would anybody be able
    to advise.
    Cheers
  • Mattias Sjögren

    #2
    Re: c# programming

    [color=blue]
    >I type 'csc Filename.cs' in
    >the command window but it just states ''csc' is not recognized as an internal
    >or external command, operable program or batch file'. Would anybody be able
    >to advise.[/color]

    Run the Visual Studio .NET 2003 Command Prompt shortcut on the Start
    menu, or manually set up the environment by first running
    YourVSDirectory \Common7\Tools\ vsvars32.bat.



    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • DineshUST

      #3
      RE: c# programming

      I would suggest you try to compile the file standing in the visual studio
      ..NET command promtp, which you can actually find in the menu itself, under
      the main item "VisualStudio.N ET 2003" --> "Visual Studio .NET Tools".

      If still you are not able to compile, set the physical path to the framework
      folder in the command prompt.

      hope, this wil be useful for you..

      Thanks,
      Dinesh

      "Brett" wrote:
      [color=blue]
      > I have downloaded the .Net framework SDK v1.1, and I have visual studio.net
      > 2003. I can build and run the programmes in visual studio but I can't manage
      > to run C# programs from the DOS command window. I type 'csc Filename.cs' in
      > the command window but it just states ''csc' is not recognized as an internal
      > or external command, operable program or batch file'. Would anybody be able
      > to advise.
      > Cheers[/color]

      Comment

      Working...