You can use the ResourceWriter object to create resource files.
Take a look at the discussion and code found on gotdotnet.com