I've used the FileHelpers.dll library found here in the past with success. In this specific case, this time around last year, I was able to make the class generate some flat files. For some reason, a full year later, I come back to my old project, make some modifications and now it won't work. I'm trying to use FixedLengthRecord to write some data to a file, but now it complains that not all my fields have the FixedField attribute. I double, triple, quadruple checked and all my public fields have the required attribute. After commenting all of my methods and properties I realized that it was complaining about some private fields I use to back some of the class' properties. I had to apply a Ignore attribute on these private fields for it to work.
My question is, what could I have possibly done this time around for it to behave in this manner? Last year the exact same class definitions worked like a charm and it ignored all of my private fields. I'm using VS2008 and FileHelpers.dll version 2.0.0.0 (same version I used last year). I tried searching the docs and reading some of the source code, but I can't seem to find anything related to this.
in fact the library includes all the fields (public or private) you must to explicity exclude them out with [FieldHidden]
attribute.
You can download the last stable version from the home page: