I make winforms application on vb.net. When I try to run it under mono (without wine, with mono-vbnc installed) in Linux Mint 18, I get an error
Unhandled Exception: System.InvalidOperationException: WinForms_SeeInnerException ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: No valid icon entry were found. at System.Drawing.Icon.InitFromStreamWithSize (System.IO.Stream stream, Int32 width, Int32 height) <0x4046cc50 + 0x00f9b> in <filename unknown>:0 at System.Drawing.Icon..ctor (System.Runtime.Serialization.SerializationInfo info, StreamingContext context) <0x4051fa00 + 0x001db> in <filename unknown>:0 Removed the icon from the application and the form, and also deleted the icon from the resources - the error disappeared.
Is it possible to run an application / form with an icon under mono?
And what requirements are imposed on it?
Can I make different resource files for different build configurations?
I compile in VS2015.