ResXGenerator
ResXGenerator copied to clipboard
Add support for System.Drawing.Bitmap and System.Byte[]
The resx file with images, icons, or files are generated as string now. It should be as below:
<data name="SomeImage" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\some_image.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
</value>
</data>
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap SomeImage{
get {
object obj = ResourceManager.GetObject("SomeImage", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
Add windows support for the test project, add image to resx file will generate these code.