Skip to content

How to run an .NET executable

Misha edited this page Mar 18, 2021 · 1 revision

First, Make sure that the file system is enabled in cosmos. To do this use:

CosmosVFS fs = new Sys.FileSystem.CosmosVFS();

Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);

Then, You can start the executable like so:

DotNetClr.DotNetClr clr = new DotNetClr.DotNetClr(fl, @"0:\framework");

clr.Start();

Clone this wiki locally