My team has a virtual machine running Windows Server 2008 R2 Enterprise, SP1, which we use to run our nightly build. We use Visual Studio 2012 and start the build process by running the devenv.exe file through System.Diagnostics.Process.Start from a C # program.
Recently, we get build failures, and the output log will look like
26>------ Build started: Project: PrjX, Configuration: Release Win32 ------ 26>A task was canceled. 27>------ Build started: Project: PrjY, Configuration: Release Win32 ------ 27>A task was canceled. 28>------ Build started: Project: PrjZ, Configuration: Release Win32 ------ 28>A task was canceled.
Sometimes it can be only one or two projects, sometimes more than 100. FWIW, we create three solutions, and the first one does not work. Subsequent builds are correct.
From searching for information on this problem, I know that the result is due to the exception System.Threading.Tasks.TaskCanceledException, which gets somewhere in VS 2012. Other than that, I do not know what is happening. My suspicion is that this may be due to parallel builds of projects. So far, I have seen only one entry related to this problem - http://social.msdn.microsoft.com/Forums/en-US/306f5a10-db72-4992-9d49-20ad1577ed05/visual-studio-2013-error- a-task-was-canceled? forum = visualstudiogeneral "Answer" was really not an answer ....
Any help or understanding will be appreciated.
source share