Error when trying to run in VS 2013


When adding as suggested in your video and upon building I am getting the following error:

The command ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ProjectBuildCounter.exe" C:\Users\Bubba\Documents\Projects\CSC Projects\DotNETDocDownSize\DotNETDocDownSize\Properties\AssemblyInfo.cs B" exited with code -1

I'm assuming it's a path issue, but I am not sure how to correct, my path to the executable does have spaces so I surrounded it with double quotes, and got the error above.

Any suggestions would be appreciated, this looks to be a valuable addition to VS.

This is my Post Build Event script:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ProjectBuildCounter.exe" $(ProjectDir)Properties\AssemblyInfo.cs B

Thank You,

Closed Oct 26, 2013 at 7:09 PM by ivostoykov


ivostoykov wrote Oct 25, 2013 at 5:30 PM

Hello Paul,

It is really a path issue. You could correct the problem surrounding each parameter containing spaces in double quotes. You do not need to set more than one pair of quotes. The after-build content should be
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ProjectBuildCounter.exe" "C:\Users\Bubba\Documents\Projects\CSC Projects\DotNETDocDownSize\DotNETDocDownSize\Properties\AssemblyInfo.cs" B
Please be sure all parametes are in a sigle line (i.e. check that there are no new lines (ENTER)).

The problem with your case is that the second parameter. It contains a space -
  • note the underscore (representing the space) - and must be surrounded with double quotes.
This is an old Windows command line (prompt) issue. I gave up implementing more complicated parameters check because the idea was to keep this tool as light as possible.

Hope this will solve your problem ;-)


pg48195 wrote Oct 26, 2013 at 5:06 PM

That solved the problem, thanks so much for the quick reply!!