Build/Test Issues

weird build failure with resource/bmp files

Started by damageboy on 5,082 views

Hi,
I've got a Resource.Resx file which references roughly 100 bitmaps.
When NCrunch fails to build the project I see:
Properties\Resources.resx (222): Invalid Resx file. Could not find file 'X:\ncrunch\6920\321\src\Project\Resources\FeedConnected.bmp'. Line 222, position 5.

When I go the X:....\ (which, BTW, is a Ram-Drive), I see roughly all OTHER .bmp files in there, but not the missing one.

Any ideas what could be causing this?
What I could I do to get better visibility to why NCrunch is NOT copying the file?
Most likely NCrunch isn't aware of this resource file (see http://www.ncrunch.net/documentation/considerations-and-constraints_implicit-file-dependencies for more details).

Is it possible that the other bitmaps have been added to the project file?

The simple solution may be to use the additional files to include setting to let NCrunch know about the file, or to add it to the project file. Unfortunately at this stage NCrunch doesn't yet parse resx files to find resources that aren't part of the project file, which is probably why it isn't picking up the resource automatically.
Hi,
I'm sorry, this was one of 100 bitmap files referenced in the .resx, unfortunately it was one that was not referenced as a project item in the .csproj file
Thanks for everything!

Remco wrote:Most likely NCrunch isn't aware of this resource file (see http://www.ncrunch.net/documentation/considerations-and-constraints_implicit-file-dependencies for more details).

Is it possible that the other bitmaps have been added to the project file?

The simple solution may be to use the additional files to include setting to let NCrunch know about the file, or to add it to the project file. Unfortunately at this stage NCrunch doesn't yet parse resx files to find resources that aren't part of the project file, which is probably why it isn't picking up the resource automatically.

Great! I'm glad I guessed that one right! Happy crunching :)

Post a reply

Log in to reply.