Когда я проверил код, TFS 2013 автоматически построил решение. Это нормально в локальном VS 2013, но не удалось в TFS.Построить на TFS 2013 не удалось, но нормально локально
Вот резюме.
Summary
FTPProcessor | Any CPU
1 error(s), 56 warning(s)
$/xxxx/NewServiceHost/New-Branch/NewServiceHost/packageRestore.proj - 0 error(s), 0 warning(s)
$/xxxx/NewServiceHost/New-Branch/GenericWindowsServices.sln - 1 error(s), 56 warning(s)
C:\Builds\1\xxxx\FTP Processor (New)\src\.nuget\nuget.targets (71): The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Build.Tasks.v4.0.dll". Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Build.Tasks.v4.0.dll' or one of its dependencies. The system cannot find the file specified.
Other Errors
1 error(s)
Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException) Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Вы обнаружили факт, что я могу изменить файл nuget.targets. Но нужно ли нам изменить значение ToolsVersion в файле csproj? На самом деле моя локальная машина использует VS 2013, мой TFS использует старую версию. –
Вы можете изменить значение в вашем файле .csproj, но другой вариант - переопределить это, используя переключатель toolsversion при вызове msbuild.exe. http://msdn.microsoft.com/en-us/library/bb383985.aspx – Nicodemeus
@ Zenuka, я обновлю, спасибо. – Nicodemeus