问题
Generally the Managed executables I compile with the Mono GMCS on Ubuntu, run fine with .NET Framework 2.0 on Windows, but don't work with any other version. Is it possible to compile exes that run on the .NET Framework 4 with Mono?
回答1:
Instead of gmcs, use the dmcs front end of the Mono compiler which targets the 4.0 runtime.
来源:https://stackoverflow.com/questions/8739406/targeting-and-compiling-for-net-framework-4-0-with-mono