I have a C# Project with the following line in the Pre-Build events:
copy "(RSSDK_DIR)\bin\win32\libpxccpp2c.dll" "($OutDir)" /Y
RSSDK_DIR is an environment variable and $OutDir is a recognized macro symbol. I am trying to copy the given DLL from the first directory to the output directory.
When I build the project I get the error:
Error 1 The command "copy "(RSSDK_DIR)\bin\win32\libpxccpp2c.dll" "($OutDir)" /Y" exited with code 1.
I have done a similar task in C++ projects and it worked fine. In addition, you could see the actual command fully expanded being run when the build event fires in the Output window. In this case with my C# project, it doesn't appear to be expanding either the environment variable or the macro symbol. I've read other SO posts on doing a file copy like this and my version appears to be the same as what I've seen.
How can I get this to work and are there any IDE settings or tools to help debug this?