Wiki

Changes between Initial Version and Version 1 of LibraryCouldNotBeFound

Show
Ignore:
Timestamp:
05/22/12 03:15:13 (5 years ago)
Author:
Charles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LibraryCouldNotBeFound

    v1 v1  
     1== Metadata file could not be found == 
     2 
     3When you get the following compilation error: 
     4{{{ 
     5error: Metadata file "System.Xml.Linq.dll" could not be found 
     6}}} 
     7 
     8This can be a mismatch between .NET versions, such as the version Cobra is running on vs. the version the DLL in question was written against. The current solution is to explicitly point to the appropriate back-end C# compiler. Suppose you are accessing a .NET 3.5 DLL, the solution might then be one of these: 
     9{{{ 
     10cobra -c -d -native-compiler:C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe  foo.cobra 
     11cobra -c -d -native-compiler:C:\Windows\Microsoft.NET\Framework64\v3.5\csc.exe  foo.cobra 
     12}}} 
     13 
     14== Cannot locate assembly reference "Foo.dll' == 
     15 
     16When you get the following compilation error: 
     17{{{ 
     18Cannot locate assembly reference "Foo.dll" 
     19}}} 
     20 
     21This can be that the library "Foo.dll" does exist, but is referencing another library that it needs. This error report needs improving. In the meantime, you can get additional information by passing a flag to the Cobra compiler: 
     22{{{ 
     23cobra -verbosity-ref:1 ... 
     24}}}