I am trying to successfully build a team project that has a pre build event to register 5 dlls. I have read the build log numerous times and cannot seem to figure out the problem. The prebuild event reads like this:
regsvr32 $(SolutionDir)DLLs_ToRegister\file1.dll
regsvr32 $(SolutionDir)DLLs_ToRegister\file2.dll
regsvr32 $(SolutionDir)DLLs_ToRegister\file3.dll
regsvr32 $(SolutionDir)DLLs_ToRegister\file4.dll
regsvr32 $(SolutionDir)DLLs_ToRegister\file5.dll
regsvr32 $(SolutionDir)DLLs_ToRegister\file6.dll
When building in the development environment, this command works perfectly for all developers, but when I queue a build I get the following error
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(885,9): error MSB3073: The command "regsvr32 C:\Documents and Settings\tfsservice\Local Settings\Temp\AIRCAT\AIRCAT Integration\Sources\DLLs_ToRegister\file1.dll /s
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(885,9): error MSB3073: regsvr32 C:\Documents and Settings\tfsservice\Local Settings\Temp\PROJECT\PROJECT Integration\Sources\DLLs_ToRegister\file2.dll /s
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(885,9): error MSB3073: regsvr32 C:\Documents and Settings\tfsservice\Local Settings\Temp\PROJECT\PROJECT Integration\Sources\DLLs_ToRegister\file3.dll /s
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(885,9): error MSB3073: regsvr32 C:\Documents and Settings\tfsservice\Local Settings\Temp\PROJECT\PROJECT Integration\Sources\DLLs_ToRegister\file4.dll /s
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(885,9): error MSB3073: regsvr32 C:\Documents and Settings\tfsservice\Local Settings\Temp\PROJECT\PROJECT Integration\Sources\DLLs_ToRegister\file5.dll /s
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(885,9): error MSB3073: regsvr32 C:\Documents and Settings\tfsservice\Local Settings\Temp\PROJECT\PROJECT Integration\Sources\DLLs_ToRegister\file6.dll /s" exited with code 3.
I have been searching for days for an answer and am stuck. I know the exit code mean that the file/path was not found, but the build log clearly indicates that the directory was created and the files pulled from the server.
Please help.