In the project I\'ve inherited, the original developer used a number of post-build events in his Visual Studio projects to copy around DLL\'s and stuff when building inside
My approach is to guard the pre- or post-build code with this
IF "$(BuildingInsideVisualStudio)"=="true" ( …your code here… )
IF "$(BuildingInsideVisualStudio)"=="true" (
)
That variable is automatically defined by Visual Studio and you do not need to change the build definition.