AnsweredAssumed Answered

Cannot copy esriAddIn in post-build event

Question asked by codergrlcom on Nov 10, 2015
Latest reply on Nov 11, 2015 by jon.morris

I'm trying to set up a post build event in Visual Studio 2010 that copies the .esriAddIn file to a specific folder after it's built. However, it does not work. After some more digging I got to an error saying that the file does not exist. I added an echo and a timer to see if the code even runs, and everything runs fine, but the actual esriAddIn file doesn't get created until after the post-build event finishes running. I'm out of ideas how to make this work.

 

Here's the code I'm using:

 

start xcopy /Y /R "C:\Users\codergrl\Documents\Visual Studio 2010\Projects\ArcMapAddin1\ArcMapAddin1\bin\Release\ArcMapAddin1.esriAddIn" "C:\Users\codergrl\Documents\AddIns"

 

This works fine if I put it in a .bat file, but gives me the "file not found" error if I put it in the post-build event in VS.

 

Any ideas?

Outcomes