Monday, 1 November 2010

.net 4 Client Profile on Mono 2.8

If you’re running a .net 4 app built for the .net Client Profile, then you might get the following error when trying to run it on mono:

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v2.0.50727

To work-around this problem, you can either remove the line

    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>



From the app.config file (or yourprogram.exe.config), or add the switch 



--runtime=v4.0.30319



To the mono command-line.