After compiling some old academic code, which is supposed to work with older version of Oxygene, I constantly run into the
System.Resources.MissingManifestResourceException exception in the line, which loads an icon for the form:
self.Icon := (resources.GetObject('$this.Icon') as System.Drawing.Icon)
When I remove the line it fails elsewhere while trying to load a string from resources, so it seems quite constant problem when accessing resources.
Searching for a resolution I have found this which lead to reviewing
Build Action settings for the
.resx files in the project, which lead to two conclusions:
.resxfiles tight to the module (
main.resxdisplayed as sub folder of
main.pas) I can only choose
Contentfrom the VS 2017 GUI.
- I have manually changed this field in the project source to (suggested in the thread mentioned above)
EmbeddedResourceand it seems when using ILSpy tool that the resource finally IS embedded in the assembly, however
It still fails with the same exception.
I have also found this thread on your talk board which does not help but references this post, which subject sounds promising but when I try to click displays
Sorry, you don't have access to that topic!.