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
Post a Comment