| 51 | |
| 52 | |
| 53 | === Metadata file "Foo.dll" could not be found === |
| 54 | |
| 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 | }}} |