[Mono-list] Mono + CoreCLR + Nunit

Rodrigo Kumpera kumpera at gmail.com
Fri Mar 22 19:07:32 UTC 2013

Enabling CoreCLR requires embedding mono and building a custom BCL. It
cannot be readily enabled with vanilla mono.

On Wed, Mar 20, 2013 at 2:50 AM, sunwukong <wicked.wukong at gmail.com> wrote:

> Hi guys,
> I am planning to use Mono CoreCLR security infrastructure as a sandbox for
> running untrusted code. Specifically they are user tests which are run
> using
> nunit or msunit on the server once they are uploaded. I read about the
> CoreCLR attributes but I couldn't find any practical source online (Except
> the c++ examples and a test from mono github source). All of my code is in
> C# so no embedding I suppose. I tried invoking nunit-console with mono with
> security option core-clr and it failed (which I think is reasonable cause I
> haven't declared anywhere that nunit assemblies are safe).
> My current idea is to write a custom nunit runner, declare that as safe
> critical. And use that as a gateway to run my tests by passing the assembly
> path from commandline with mono core-clr security switch.
> Will this idea work or are there loopholes in it which I am missing.
> Thank you. Any pointers in this or examples are appreciated.
> ./sun
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Mono-CoreCLR-Nunit-tp4659096.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130322/4aa2c08e/attachment.html>

More information about the Mono-list mailing list