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

Notification

Icon
Error

Linked files used as embedded resources in RESX cause built to fail
lennybacon
#1 Posted : Tuesday, August 18, 2015 9:26:26 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/5/2013(UTC)
Posts: 5
Location: Germany

I have a generated file (branchinfo.txt) that contains the name of the current git branch. This file is linked into the project. And I used drag drop to add the file to the default Resources.resx file.

NCrunch fails to build with the message:

NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/d...ng_project-build-issues
Properties\Resources.resx (123, 5): Invalid Resx file. Could not find a part of the path 'C:\Users\Daniel.Fisher\AppData\Local\NCrunch\4592\6\mes\res\branchinfo.txt'. Line 123, position 5.
Remco
#2 Posted : Tuesday, August 18, 2015 10:26:02 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi,

At the moment NCrunch doesn't parse .resx files to identify their dependencies. This means that if a resx file references a file that isn't declared in your project file, NCrunch won't know about it.

There's two ways you can solve this:

1. Include the branchinfo.txt file inside your project.
2. Include the branchinfo.txt file in the 'Additional files to include' NCrunch project-level configuration setting.
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.028 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download