post build commands for ExcelDna Property page fail/fix

Jun 24, 2011 at 3:24 AM

Visual Studio 2010 post build commands fail because of the spaces in the Copy <source> $(TargetDir).

The spaces confuse the command arguments.

 

This works.

This should replace the existing post build commands.

-------------------------------------------------

echo "ExcelDnaPropertyPage post-build commands"

echo "SolutionDir=$(SolutionDir)"

echo "TargetDir=$(TargetDir)"

cd $(SolutionDir)

cd

cd $(SolutionDir)ExcelDna.Integration

cd

cd $(SolutionDir)ExcelDna.Integration\bin

cd

cd $(SolutionDir)ExcelDna.Integration\bin\Debug

cd

dir /B *.dll *.pdb

echo +copy ExcelDna.Integration.dll "$(TargetDir)"

copy ExcelDna.Integration.dll "$(TargetDir)"

echo +copy ExcelDna.Integration.pdb "$(TargetDir)"

copy ExcelDna.Integration.pdb "$(TargetDir)"

cd $(SolutionDir)

cd

cd ExcelDna.Loader

cd

cd bin

cd

cd Debug

cd

dir /B *.dll *.pdb

echo +copy ExcelDna.Loader.dll "$(TargetDir)"

copy ExcelDna.Loader.dll "$(TargetDir)"

echo copy ExcelDna.Loader.pdb "$(TargetDir)"

copy ExcelDna.Loader.pdb "$(TargetDir)"

echo "ExcelDnaPropertyPage post-build events"

Coordinator
Jun 26, 2011 at 11:20 AM

Thank you for the fix!

I have never tried to compile from a directory with a space in, so I'll test that and fix up for the next version.

-Govert

Coordinator
Jun 26, 2011 at 11:21 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.