Does mono application bundled with mkbundle use app.config? -


i build application this:

mkbundle --static -o de --deps deviceemulator.exe  unionargparser.dll emulators.dll nlog.dll protocol.dll fsharpx.core.dll 

when run ./de on same machine application works fine. when copy other machine (i use lxc container) , start got error:

exception: system.configuration.configurationerrorsexception: error initializing configuration system. system.configuration.configurationerrorsexception: unrecognized configuration section (/home/ubuntu/tests/device/deviceemulator.exe.config line 3)

addition

i found solution myself. need pass parameter --machine-config <path mono/runtime/etc/mono/4.0/machine.config> when bundle. solve problem error.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -