Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. i'm a beginner. help

i'm a beginner. help

Scheduled Pinned Locked Moved C#
helptutorialquestionlearning
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Forrest Feather
    wrote on last edited by
    #1

    i'm not a english speaker,i hope you can understand my expression. i want to compile my code with commands. i input for example csc example.cs but theres no program result shows. whether i need any parameter with the "csc" command? thanks for your help

    B E 2 Replies Last reply
    0
    • F Forrest Feather

      i'm not a english speaker,i hope you can understand my expression. i want to compile my code with commands. i input for example csc example.cs but theres no program result shows. whether i need any parameter with the "csc" command? thanks for your help

      B Offline
      B Offline
      Broken God
      wrote on last edited by
      #2

      C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>csc /? Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved. Visual C# .NET Compiler Options - OUTPUT FILES - /out: Output file name (default: base name of file with main class or first file) /target:exe Build a console executable (default) (Short form: /t:exe) /target:winexe Build a Windows executable (Short form: /t:winexe) /target:library Build a library (Short form: /t:library) /target:module Build a module that can be added to another assembly (Short form: /t:module) /define: Define conditional compilation symbol(s) (Short form: /d) /doc: XML Documentation file to generate - INPUT FILES - /recurse: Include all files in the current directory and subdirectories according to the wildcard specifications /reference: Reference metadata from the specified assembly files (Short form: /r) /addmodule: Link the specified modules into this assembly - RESOURCES - /win32res: Specifies Win32 resource file (.res) /win32icon: Use this icon for the output /resource: Embeds the specified resource (Short form: /res) /linkresource: Links the specified resource to this assembly (Short form: /linkres) - CODE GENERATION - /debug[+|-] Emit debugging information /debug:{full|pdbonly} Specify debugging type ('full' is default, and enables attaching a debugger to a running program) /optimize[+|-] Enable optimizations (Short form: /o) /incremental[+|-] Enable incremental compilation (Short form: /incr) - ERRORS AND WARNINGS - /warnaserror[+|-] Treat warnings as errors /warn: Set warning level (0-4) (Short form: /w) /nowarn: Disable specific warning messages - LANGUAGE - /checked[+|-] Generate overflow checks /unsafe[+|-] Allow 'unsafe' code - MISCELLANEOUS - @ Rea

      1 Reply Last reply
      0
      • F Forrest Feather

        i'm not a english speaker,i hope you can understand my expression. i want to compile my code with commands. i input for example csc example.cs but theres no program result shows. whether i need any parameter with the "csc" command? thanks for your help

        E Offline
        E Offline
        extremeg
        wrote on last edited by
        #3

        Hi friend, I had same problem with my "Hello World" program using CP. I suggest the following: 1. Don't enter the commands in the MS-DOS mode, instead use the Visual Studio .NET Command prompt. 2. Ensure that your program is saved as as .cs "example.cs" 3. In the VS.NET command prompt type csc example.cs The program will compile successfully if it has no bug. Then type example (press enter). Your program begins to run. Enjoy C#:-D ...the mind is not a vessel to be filled but a fire to ignited

        F 1 Reply Last reply
        0
        • E extremeg

          Hi friend, I had same problem with my "Hello World" program using CP. I suggest the following: 1. Don't enter the commands in the MS-DOS mode, instead use the Visual Studio .NET Command prompt. 2. Ensure that your program is saved as as .cs "example.cs" 3. In the VS.NET command prompt type csc example.cs The program will compile successfully if it has no bug. Then type example (press enter). Your program begins to run. Enjoy C#:-D ...the mind is not a vessel to be filled but a fire to ignited

          F Offline
          F Offline
          Forrest Feather
          wrote on last edited by
          #4

          hi extremeg: thanks for your help :) i find the .exe file was create by csc application at the same folder.so,i create a shortcut of visual studio.net command prompt at desktop then i find that the .exe file was on the desktop too. these days i use this method to compile my code and view results :) i think your method maybe more convenient! thanks for your help... my english is so poor.. i wish that u could understand my message.. :)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups