Wiki

Changes between Version 5 and Version 6 of CommandLine

Show
Ignore:
Timestamp:
05/28/11 16:55:47 (14 years ago)
Author:
RIGHT_THEN
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CommandLine

    v5 v6  
    2121cobra foo.cobra bar.cobra -- arg1 arg2 
    2222 
    23   # passing reference to an assembly be it .exe or .dll 
    24   # is done through -ref: it can take either of the two 
    25   # a) AssemblyFileName.exe or AssemblyFileName.dll 
    26   # b) ItsFullPath\AssemblyFileName.exe or ItsFullPath\AssemblyFileName.dll 
    27 cobra -c -ref:AnyAssembly.dll codeFile.cobra 
    28                  or  
    29 cobra -c -ref:AnyAssembly.exe codeFile.cobra 
    30               with Full Paths 
    31 cobra -c -ref:ItsFullPath\AnyValidAssembly.dll codeFile.cobra 
    32                  or  
    33 cobra -c -ref:ItsFullPath\AnyValidAssembly.exe codeFile.cobra 
    34  
    35   #if you are not providing paths of the referenced assemblies then you can use 
    36   #-lib: option to provided additional paths for compiler to search for the referenced assemblies 
    37   # this can work good for assemblies outside of the GAC i.e private assemblies 
    38   # but suppose you want to include System.Speech which is found in both .net 3.5 
    39   # and .net 4.0 so even if you provide additional paths through -lib: for System.Speech 
    40   # if compiler is compiled on .net 4.0 it may default to using .net 4.0 version of System.Speech 
    41   # so when you want to specify paths to the referenced assembly explicitly  
    42   # use -ref:withFullPath\To\RequiredAssembly.dll or .exe 
    43  
     23   
    4424  # disable all checks, contracts, asserts, etc. 
    4525  # maximum performance 
     
    7959   options form : -option:value, synonyms 
    8060 
     61 
     62   passing reference to an assembly be it .exe or .dll[[BR]] 
     63   is done through -ref: it can take either of the two[[BR]] 
     64   a) assemblyFileName.exe or assemblyFileName.dll[[BR]] 
     65   b) itsFullPath\assemblyFileName.exe or itsFullPath\assemblyFileName.dll[[BR]] 
     66 
     67cobra -c -ref:anyAssembly.dll codeFile.cobra[[BR]] 
     68                 or [[BR]] 
     69cobra -c -ref:anyAssembly.exe codeFile.cobra[[BR]] 
     70              with Full Paths[[BR]] 
     71cobra -c -ref:itsFullPath\anyValidAssembly.dll codeFile.cobra[[BR]] 
     72                 or [[BR]] 
     73cobra -c -ref:itsFullPath\anyValidAssembly.exe codeFile.cobra[[BR]] 
     74 
     75   if you are not providing paths of the referenced assemblies then you can use[[BR]] 
     76  -lib: option to provided additional paths for compiler to search for the referenced assemblies[[BR]] 
     77   this can work good for assemblies outside of the GAC i.e private assemblies[[BR]] 
     78   but suppose you want to include System.Speech which is found in both .net 3.5[[BR]] 
     79   and .net 4.0 so even if you provide additional paths through -lib: for System.Speech[[BR]] 
     80   if compiler is compiled on .net 4.0 it may default to using .net 4.0 version of System.Speech[[BR]] 
     81   so when you want to specify paths to the referenced assembly explicitly[[BR]] 
     82   use -ref:withFullPath\to\requiredAssembly.dll or .exe[[BR]] 
     83 
     84 
     85 
    8186TODO Sections 
    8287    * Files:file