Build/Test Issues

Linked files used as embedded resources in RESX cause built to fail

Started by lennybacon on 4,992 views

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/documentation/troubleshooting_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.
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.

Post a reply

Log in to reply.