I have the same issue with 1.9.4.19. When I included a images.resx in the file, it get compiled and included in the dll as images.resources 7 times according to .NET Reflector. Can you briefly explain the process for the other method?

Once I actually get it in the assembly, how do I load it? Right now, I'm trying to load an image and set it as the form icon like so:

let rm = new ResourceManager("images", System.Reflection.Assembly.GetExecutingAssembly())
let imageList = new ImageList()
imageList.ImageStream <- ((rm.GetObject("imageList.ImageStream")) :?> ImageListStreamer) // p176
let images = imageList.Images
printfn "# of images: %d" images.Count
let bitmap = images.[0] :?> Bitmap
let icon = Icon.FromHandle(bitmap.GetHicon())
form.Icon <- icon

but it isn't working. Any ideas?

By on 7/22/2008 3:20 PM ()

Thanks for reporting this issue.

For now, please use "--resource" (Chris - you compile the resource using resgen.exe, part of the .NET Framework SDK).

The ability to pass a .resx file on the command line is likely to be deprecated in a future release in favour of "doing it properly" with by using tools such as MSBuild.

Kind regards

don

By on 7/23/2008 4:20 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper