Я создаю приложение, разработанное в C # для Linux, просто с помощью команды:
$ msbuild mySolution.sln
И его компиляция прошла успешно! Однако, когда я пытаюсь запустить bin .exe с помощью Mono, я получаю сообщение об ошибке (System.notImplementedException) о System.Windows.Forms.DataVisualization.Charting.Chart
, даже если .csproj когда-либо ссылается на Windows.Forms [например, (...) <Reference Include="System.Windows.Forms" />
]
Установлена моно (-полная) версия:
Debug> mono --version
Mono JIT compiler version 5.12.0.301 (tarball Wed Jul 25 15:43:48 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: supported, not enabled.
GC: sgen (concurrent by default)
И ошибка вывода звучит так:
Debug> mono App.exe
Unhandled Exception:
System.NotImplementedException: The method or operation is not implemented.
at System.Windows.Forms.DataVisualization.Charting.Chart.BeginInit ()
[0x00000] in :0
at App.Gui.StartForm.InitializeComponent () [0x00364] in :0
at App.Gui.StartForm..ctor () [0x0006f] in :0
at (wrapper remoting-invoke-with-check) App.Gui.StartForm..ctor()
at App.Gui.StartForm.get_Main () [0x00007] in :0
at App.Program.Main () [0x0000b] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NotImplementedException: The method or operation is not implemented.
at System.Windows.Forms.DataVisualization.Charting.Chart.BeginInit () [0x00000] in :0
at App.Gui.StartForm.InitializeComponent () [0x00364] in :0
at App.Gui.StartForm..ctor () [0x0006f] in :0
at (wrapper remoting-invoke-with-check) App.Gui.StartForm..ctor()
at App.Gui.StartForm.get_Main () [0x00007] in :0
at App.Program.Main () [0x0000b] in :0
Как я могу это исправить?