I have indeed been successful compiling EL 5 drop 61455 against .NET4.0 beta 2. I have not encountered the specific problem that was reported with beta 1. However, there is on BIG issue with the new security model in .NET4. The P&P team will eventually
have to choose a strategy for revamping code related to permissions.
There doesn't seem to be any problem rebuilding EL 5 against beta 2 as long as you only intend to link against all FULL TRUST assemblies (for example, anything in the GAC). The tests for various permissions manipulations will not work correctly
the way they are currently written.
I am in the process of configuring a build of EL 5 drop 62268. If you can live with FULL TRUST ONLY you can download my previous build at
Composure or wait for the build I will post there in the next day or two. That will be using pragmas to handle 3.5 or 4.0 depending on conditional compilation ("NET4_FULL_TRUST").
I am not yet sure whether or not this will resolve ALL of the issues. But it seems to be properly handling most of them (as far as I can tell at the moment).
*DISCLAIMER:* Only use my build if you want to experiment. *PLEASE DO NOT* use it in production. Better to wait for the P&P team to create the release version.