show/hide this revision's text 2 fix wiki link

I tried using the post-build batch file(s) to automatically upload my plugin to my local installation for testing purposes, as described here under "Add the Build Step to the Project", and I'm getting an error because of a space in my plugin project's name.

My post-build command-line is: "C:\Program Files (x86)\FogBugz\Plugins\examples_postbuildSln.bat" "$(TargetName)"

And the result as found in the output:

  Creating My Plugin.zip...

  Searching bin
  Searching .
  adding .\FogCreek.Plugins.InterfaceEvents.dll...
  Saving....
  That zip file (My Plugin.zip) already exists.
  adding .\SharpMimeTools.dll...
  Saving....
  That zip file (My Plugin.zip) already exists.
  Exception: System.IO.FileNotFoundException: That file or directory (.\My) does not exist!
     at Ionic.Utils.Zip.ZipFile.UpdateItem(String itemName, String directoryPathInArchive)
     at Ionic.Utils.Zip.Examples.ZipIt.Main(String[] args)

Also, before getting this error, I ran into another problem with the spaces that was fixed by putting double-quotes around $(TargetName) in the post-build command-line (the step-through I linked to above should probably be updated to note this).

show/hide this revision's text 1

PostBuild (zipPlugin) batch file errors when there's a space in the Plugin project name

I tried using the post-build batch file(s) to automatically upload my plugin to my local installation for testing purposes, as described here under "Add the Build Step to the Project", and I'm getting an error because of a space in my plugin project's name.

My post-build command-line is: "C:\Program Files (x86)\FogBugz\Plugins\examples_postbuildSln.bat" "$(TargetName)"

And the result as found in the output:

  Creating My Plugin.zip...

  Searching bin
  Searching .
  adding .\FogCreek.Plugins.InterfaceEvents.dll...
  Saving....
  That zip file (My Plugin.zip) already exists.
  adding .\SharpMimeTools.dll...
  Saving....
  That zip file (My Plugin.zip) already exists.
  Exception: System.IO.FileNotFoundException: That file or directory (.\My) does not exist!
     at Ionic.Utils.Zip.ZipFile.UpdateItem(String itemName, String directoryPathInArchive)
     at Ionic.Utils.Zip.Examples.ZipIt.Main(String[] args)

Also, before getting this error, I ran into another problem with the spaces that was fixed by putting double-quotes around $(TargetName) in the post-build command-line (the step-through I linked to above should probably be updated to note this).