I'm developing a plugin and want to use the automatic zip-and-upload bat files described in this article on developers.fogbugz.com. When I added these lines to my post-build events in my project properties in Visual Studio and built, it properly copied my static directory and zipped up the plugin, but failed silently on copying the zip file to my plugin uploads directory.
xcopy /Y /I /E "$(ProjectDir)static" "$(TargetDir)static"
"C:\Program Files\FogBugz7\Plugins\examples\_postbuildSln.bat" $(TargetName)
I discovered that the problem was the FogBugz directory was read-only. I make the upload dir not read-only, built again and it worked. After that build, however, the directory was once again read-only.
What is making it read-only when I build?
My VS solution is in C:\Program Files\FogBugz7\Plugins\examples