<docbook><section><title>NoWhere</title><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> How to use visual studio command prompt to compile .Net source codes (e.g.
 cs files and reference to DLL files)</bridgehead>
<para> There are different commands parameter that could be used to compile Csharp files onto different application execution types i.e.
 the most common one which is mostly available for users online are</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h4"> CSC /out:execution <emphasis>file_name *.cs / reference:dll_name</emphasis></bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h4"> OR</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h4"> CSC *.cs / reference:dll_name</bridgehead>
<para>It is not a good practice to use the any of the commands parameter above to compile Csharp Source codes for example if you use the any of the above commands parameter to compile cs file onto Winform Execution file thus the compiler should compile successfully and generate winform execution but you most likely to come across some issues such as Console Application display at the background which is totally not required.</para>
<para>To resolve or prevent this issue hence it is better to use this command parameter given below to indicate to the compiler the type of execution to compile to .e.g.
 you have Console Application Execution and Winform Execution.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h4"> CSC /out:execution <emphasis>file_name /target:winexe *.cs / reference:dll_name</emphasis></bridgehead>
<para>/target: is used for:</para>
<para>/target:exe                   Build a console executable (default) (Short form: /t:exe)</para>
<para>/target:winexe             Build a Windows executable (Short form: /t:winexe)</para>
<para>/target:library              Build a library (Short form: /t:library)</para>
<para>/target:module             Build a module that can be added to another</para>
<para>/out: is used for:</para>
<para>/out:<span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:file             Specify output file name (default: base name of file with main class or</span></para>
<para>                              first file)</para>
<para>*.cs is used for including all the Csharp Source Code files to be compiled the same default directory path.</para>
<para>/reference: is used for referencing metadata from the specified assembly</para>
<para> files (Short form: /r)</para>
<para>To know more about CSC compiler settings, type csc /? on Visual Studio 2005 Command Prompt.</para>
</section></docbook>