Bundling mono with a c++ app that embeds it -


i have created sample c++ app uses dynamic linking embed mono (as described here http://www.mono-project.com/embedding_mono) , use c# scripting. works well, long mono installed in global assembly cache (gac).

is there way bundle mono c++ executable can install alongside c++ executable ?

i have been looking @ mkbundle looks packages mono c# apps.

edit : answer below reformatted

#include <cstdlib> _putenv("mono_gac_prefix=c:\\cygwin\\usr\\local\\bin\\"); mono_set_dirs("c:\\cygwin\\usr\\local\\lib","c:\\cygwin\\usr\\local\\etc"); 

edit : corrected : need copy/paste mono-2.0.dll in executable's folder , use mono_set_dirs("c:\\cygwin\\usr\\local\\lib","c:\\cygwin\\usr\\local\\etc"); force use of specific framework

mono consists of 2 distinct parts:

  • the base runtime written in c, embeddable mentioned in oq
  • lots of class libraries, written in c#. these not embedded runtime, reside in gac

basically need provide own gac - easyily done taking app folder structure, setting mono_gac_prefix environment variable wherever installed.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -