0

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).

flag

1 Answer

1

I've updated the documentation on the wiki page you linked to, but I haven't been able to reproduce the problem you're reporting with any of my plugins.

Also, as a workaround, if you modify your Visual Studio Project's properties to not have have any spaces in the "Assembly Name" property, you should be able to avoid this problem altogether.

link|flag
You weren't able to reproduce the problem using a plugin project with a space in the assembly's DLL name? I only have access to download and use FogBugz 8.1.6 as a dev environment because my boss hasn't OK'd an extension of the maintenance contract yet. Is there somewhere I can get a copy of the most recent version of the accessories (mainly just ZipIt.exe) and build batch files included in the FogBugz installation? There's a good chance I'm using an older version of ZipIt, one that's not parsing file names on the command-line correctly. – Greg Apr 23 2012 at 16:41

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.