2
Vote

-v Both

description

It would be nice to have a switch so that both the Assembly and the File versions are updated. I usually use the Assembly information when displaying in the program, but I like to have the information on the file match.
Locally I refactored the constructor to pull out most of it into a Replace method... then put this in the "else" when Both was selected:
                this._activeRegex = AssemblyVersionRegex;
                this._replaceFormat = "AssemblyVersion(\"{0}\")";
                Replace(input, options);
 
                this._activeRegex = FileVersionRegex;
                this._replaceFormat = "AssemblyFileVersion(\"{0}\")";
                Replace(_output, options);

comments