Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Another exciting error building lang/mono...



On Tue, Aug 13, 2019 at 12:00:31PM +0100, Chavdar Ivanov wrote:
> wip/mono6 built OK, but I get:
> ....
> ~ csharp
> 
> Unhandled Exception:
> System.TypeInitializationException: The type initializer for
> 'System.Console' threw an exception. --->
> System.TypeInitializationException: The type initializer for
> 'System.ConsoleDriver' threw an exception. --->
> System.DllNotFoundException: System.Native

I kept seeing this. I finally have the answer.

There's a file in the Mono build directory, data/config.
This maps the upstream (Microsoft) DLL names to the ones used by Mono.

Run it as:

env MONO_CONFIG=./data/config csharp


Home | Main Index | Thread Index | Old Index