i'm a beginner. help
-
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
-
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
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
-
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
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
-
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
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.. :)