Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

weird build failure with resource/bmp files
damageboy
#1 Posted : Thursday, August 21, 2014 12:42:46 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/21/2014(UTC)
Posts: 9
Location: Israel

Was thanked: 1 time(s) in 1 post(s)
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?
Remco
#2 Posted : Thursday, August 21, 2014 10:51:49 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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.
damageboy
#3 Posted : Friday, August 22, 2014 5:12:52 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/21/2014(UTC)
Posts: 9
Location: Israel

Was thanked: 1 time(s) in 1 post(s)
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;6209 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.

Remco
#4 Posted : Friday, August 22, 2014 5:34:55 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Great! I'm glad I guessed that one right! Happy crunching :)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.030 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download