Hi I'm developing a Windows Forms Application in IronPython Studio. I want to choose an Icon for my project but both of these fail: 1- Form Properties window -> Icon (choose a *.ico file) a compile-time error occurs and is related to IronPython.targets file
The "IronPythonCompilerTask" task failed unexpectedly. System.ArgumentNullException: Value cannot be null.
2- I add a *.ico file to Project (Project -> Add -> Existing Item) and in its properties, change the 'Build Action' to 'Embedded Resource' now I cannot use System.Reflection.Assembly to gain access to this resource my code:
self.Icon = Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream('IronPythonWinApp.myIcon.ico'))
in runtime it throws an exception:
The invoked member is bot supported in a dynamic assembly
Does anyone know a better (best?) way to add an icon to an IronPython WinForms ?
thanks