Wiki

Changes between Version 13 and Version 14 of Troubleshooting

Show
Ignore:
Timestamp:
05/22/12 03:06:58 (12 years ago)
Author:
Charles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Troubleshooting

    v13 v14  
    5353=== Metadata file "Foo.dll" could not be found === 
    5454 
    55 When you compile, you get the error: 
    56 {{{ 
    57 error: Metadata file "System.Xml.Linq.dll" could not be found 
    58 }}} 
    59  
    60 This 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: 
    61 {{{ 
    62 cobra -c -d -native-compiler:C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe  foo.cobra 
    63 cobra -c -d -native-compiler:C:\Windows\Microsoft.NET\Framework64\v3.5\csc.exe  foo.cobra 
    64 }}} 
     55See LibraryCouldNotBeFound 
    6556 
    6657 
     
    165156 
    166157 
    167 See also: DebuggingTopics, LanguageTopics 
     158See also: LibraryCouldNotBeFound, DebuggingTopics, LanguageTopics