I have a project I am working on and have a number of images in Resources and using the resources tab in properties I can see them. Everything builds and works.
Now I want to add some more images and they are in the same JPG format as all of the others. When I use the Add Existing File from the menu of the Resources tab, I can select them and add them to the Images section.
BUT and this is the bit that confuses me, a new reference appears in the References section of the project for System.Drawing and this causes the source to show lots of errors due to Graphics, Bitmap and Font appearing in both System.Drawing and GHIElectronics.TinyCLR.Drawing.
If I delete System.Drawing from the references, the errors disappear but I cannot use the images I applied to the Resources. Eg, I try to set a BitmapImage variable to one of the new resources with the same code as I use elsewhere and it fails to find the ID aqi1
aqi1Bitmap = BitmapImage.FromGraphics(Graphics.FromImage(Resources.GetBitmap(Resources.BitmapResources.aqi1)));
When I check in Resources.Designer.cs, there is no reference to the new images in the enum section for BitmapResources… All of the old images are listed.
What am I missing? I’d rather not rebuild a new project and import it as it is already quite large.