We have a C# solution file, which contains number of individual C# projects and all of them are implemented in Visual Studio 2005. Some of the indivual projects contains the Postbuild events for copying the output files to bin directory of the solution file. Recently We had converted to Teamcity. Currently we have not moved completely to Teamcity, just we kept our projects in a shared folder and testing is going on some scenarios. Currently we got a problem with the postbuild events, When we build the solution file with the help VisualStudio 2005 IDE, the build was succeded, but when we tried to build the solution with the help of the Teamcity , the build was failed. At last we found, this problmem comes with the postbuild events, We have removed the postbuild events from the individual project properties option and tried to build the solution from Teamcity, its succeded. I have no idea, why the build was failed, if the project has the postbuild events.
Here is the error message, i am getting when i build the solution file.
- C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3109, 13): error MSB3073: The command "cd \\WIN-SHK\dnedp\dnedp\nt-i386\debug\
copy ..\..\Tests\Integrity\DL_ML_DATA\*.xml" exited with code 1.
Here is the msbuild output:
[09:59:52]: MSBuild output: copy ..\..\Tests\Data\DL_ML_DATA\*.xml '\\WIN-SHK\dnedp\dnedp\nt-i386\debug' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. '\\WIN-SHK\dnedp\dnedp\nt-i386\debug\' CMD does not support UNC paths as current directories. The system cannot find the path specified. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3109,13): error MSB3073: The command "cd \\WIN-SHK\dnedp\dnedp\nt-i386\debug\ C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3109,13): error MSB3073: copy ..\..\Tests\DataIntegrity\DDL_DML_DATA\*.xml" exited with code 1. Done building target "PostBuildEvent" in project "IntegrityTests.csproj" -- FAILED. Done building project "DataIntegrityTests.csproj" -- FAILED.