by JasonRShaver
25. July 2007 16:37
I got an error like this while building a .NET project on Windows XP box with Visual Studio 2005. This same project has been building on my Vista (also VS2005) box for weeks now so I could not Identify the issue.
It turns out that this issue is related to having compressed 256x256 PNG images for the Application Icon in the project properties. Now the standard Vista icon has the following settings:
256x256 - XP (RGB/A) (PNG Compressed)
256x256 – 256 colors (PNG Compressed)
256x256 – 16 colors (PNG Compressed)
48x48 - XP (RGB/A)
48x48 – 256 colors
48x48 – 16 colors
32x32 - XP (RGB/A)
32x32 – 256 colors
32x32 – 16 colors
16x16 - XP (RGB/A)
16x16 – 256 colors
16x16 – 16 colors
That does not include the icons that XP likes (128x128 for Dock-Bars) and the native Vista desktop size of 96x96.
There are two solutions to the ‘CSCx.tmp is not a valid Win32 resource file’ error:
1) Remove the 256x256 sizes from your icons, making them readable on your XP build machine.
or
2) Upgrade your build and/or development machines to Vista.
If anyone else finds a better option, let me know, but at this point it seems that the only way to build an app with a ‘Vista’ application icon is to build it on a Vista machine.
e15a913f-58af-4560-af82-06dc1b1b9502|0|.0
Tags:
Blog