コードをチェックインすると、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ファイルを変更できます。しかし、csprojファイルのToolsVersion値を変更する必要はありますか?実際に私のローカルマシンVS 2013を使用して、私のTFSは古いバージョンを使用しています。 –
.csprojファイルの値を変更することもできますが、msbuild.exeを呼び出すときにtoolsversionスイッチを使用して変更することもできます。 http://msdn.microsoft.com/en-us/library/bb383985.aspx – Nicodemeus
@ Zenuka、更新します、ありがとうございます。 – Nicodemeus