| 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 |
| 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 |