开发者

Resources, "GenerateResource" task failed unexpectedly (Image.Save), and TIFFs?

开发者 https://www.devze.com 2023-01-14 04:24 出处:网络
VS2008 SP1 The C# compiler is giving me \"Generate\" task failed unexpectedly ... (Image.Save) when I try to compile my project, which has a resx file to which I\'ve added a TIFF file.

VS2008 SP1

The C# compiler is giving me "Generate" task failed unexpectedly ... (Image.Save) when I try to compile my project, which has a resx file to which I've added a TIFF file.

I haven't yet written any code to reference the resource -- just having the TIFF file 开发者_如何学运维included in the resource causes the compile failure.

How can I compile this project?


I had this problem with VS2008 SP1 Pro Edition (9.0.30729.1 SP) when I tried to add TIFF files to my Resource.

Renaming the "TIFF" file to use a .dat extension (anything non-.tif is the point, I think) before adding it to the Resource solved the problem for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消