It's all about the answers!

Ask a question

What is this exception for component load rules file during a build?

Kevin L (325) | asked Aug 24 '12, 2:31 p.m.
edited Aug 24 '12, 2:42 p.m.
I have a component named MyComponent with the following folder structure:


And this is what I have in my loadrules.txt file:


I've specified the loadrules.txt file in my build definition for this component, but when the build runs, I'm getting the following exception when it tries to fetch the files: Unexpected line "´╗┐versionableName=/MyProject/TestFile.txt" encountered in build load rules for component "MyComponent"

Any idea what I'm doing wrong? I've tried following the example here:
but I can't figure why it's not working for me.

EDIT: This is in RTC 3.

Kevin L commented Aug 24 '12, 4:45 p.m. | edited Aug 24 '12, 4:45 p.m.

Also, it seems like regardless of what test I put in the loadrules.txt file (empty string, random text, etc.), I still get this "Unexpected line" exception for the first line of text I have in the file. I'm not sure if that helps, though.

2 answers

permanent link
Nick Edgar (6.5k711) | answered Aug 31 '12, 4:00 p.m.
That's strange.  It may be that Visual Studio is saving it as a unicode file, with a byte order prefix.

permanent link
Kevin L (325) | answered Aug 24 '12, 5:52 p.m.
 Looks like it was an encoding issue. I had originally used Visual Studio to create the load rules file. Recreating it in Notepad++ solved this issue.

Your answer

Register or to post your answer.