SolutionDir défini sur * Undefined * dans l'événement xcopy post-build

J'ai un projet qui a un événement post-build que xcopies une Dll d'un certain répertoire:

xcopy "$(TargetDir)$(TargetName).dll" "$(SolutionDir)..\UdpLocationService\bin\Plugins\" /d /y
xcopy "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)..\UdpLocationService\bin\Plugins\" /d /y

Cependant, j'ai CruiseControl.NET configuré comme un serveur de build et MSBuild est l'échec sur la construction de ce projet en raison de cette xcopy post-événement de construction:

MSB3073: The command "xcopy "C:\Build\Services\Windows\VehicleServer\Plugins\Payload\bin\Debug\Payload.dll" "*Undefined*..\UdpLocationService\bin\Plugins\" /d /y xcopy "C:\Build\Services\Windows\VehicleServer\Plugins\Payload\bin\Debug\Payload.pdb" "*Undefined*..\UdpLocationService\bin\Plugins\" /d /y" exited with code 4. in Microsoft.Common.targets(3397, 13)

Des suggestions pour la résolution de ce problème?

source d'informationauteur Justin | 2010-07-01