Dictionary file relative path

Oct 2, 2013 at 7:42 AM
I am having a problem with StyleCop that is most probably a stupid little thing but I cannot manage to correct it and it is driving me crazy because it is making me loose so much time. I hope you can help me.

The problem is the following one: I am working on a large project along with some coworkers, so the code is controlled with Subversion and it is arranged in a tree-like folder hierarchy. We are using StyleCop with this project, and we want to apply the same settings and the same dictionary to all the source code files.

In order to do this, I have placed the settings file in a root directory so the compiler can access it when it is compiling any source code file of the project, as it is specified here.

But my troubles are about the dictionary. I want the dictionary file to be placed in the same directory as the setting files, so it is version controlled too. The thing is that in theory, according to this, I can specify a path relative to the location of the settings file, and the dictionary will be searched there.

So, I just want to tell StyleCop to search for the dictionary in the same folder where the setting files itself is! But I cannot seem to write the relative path that means "this current folder". I have tried really a lot of things: ., ".", $., $(.), ./, .\, %.%... In the setting files, which is actually an XML file, it looks like this:
<StyleCopSettings Version="105">
    <CollectionProperty Name="DictionaryFolders">
      <Value>%.%</Value> <!-- Relative paths here-->
      <!-- etc -->
But none of these syntaxis work. In fact many of them make the compiler report a warning that it is not able to parse the XML settings file.

What am I missing? What does the correct syntaxis look like? Or am I doing anything else wrong?

I hope I have made my point clear, and I'd really appreciate some help.

Regards, Alicia.