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 | |
| 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 | |
| 67 | cobra -c -ref:anyAssembly.dll codeFile.cobra[[BR]] |
| 68 | or [[BR]] |
| 69 | cobra -c -ref:anyAssembly.exe codeFile.cobra[[BR]] |
| 70 | with Full Paths[[BR]] |
| 71 | cobra -c -ref:itsFullPath\anyValidAssembly.dll codeFile.cobra[[BR]] |
| 72 | or [[BR]] |
| 73 | cobra -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 | |