Wiki

Changes between Version 4 and Version 5 of CommandLine

Show
Ignore:
Timestamp:
05/28/11 16:44:18 (6 years ago)
Author:
RIGHT_THEN
Comment:

use of -ref: has been made explicit so that no body is confused about whether paths can be provided with -ref: or not

Legend:

Unmodified
Added
Removed
Modified
  • CommandLine

    v4 v5  
    2020  # passing arguments 
    2121cobra foo.cobra bar.cobra -- arg1 arg2 
     22 
     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 
     27cobra -c -ref:AnyAssembly.dll codeFile.cobra 
     28                 or  
     29cobra -c -ref:AnyAssembly.exe codeFile.cobra 
     30              with Full Paths 
     31cobra -c -ref:ItsFullPath\AnyValidAssembly.dll codeFile.cobra 
     32                 or  
     33cobra -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 
    2243 
    2344  # disable all checks, contracts, asserts, etc.