Quando ho controllato il codice, TFS 2013 ha creato automaticamente la soluzione. Va bene nel VS locale 2013 ma non è riuscito in TFS.La compilazione su TFS 2013 non è riuscita, ma a livello locale
Ecco il riepilogo.
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)
Hai trovato il fatto, posso modificare il file nuget.targets. Ma abbiamo bisogno di cambiare il valore di ToolsVersion nel file csproj? In realtà la mia macchina locale utilizza VS 2013, il mio TFS utilizza la vecchia versione. –
È possibile modificare il valore nel file .csproj, ma un'altra opzione è sovrascrivere quella utilizzando l'opzione tools switch quando si chiama msbuild.exe. http://msdn.microsoft.com/en-us/library/bb383985.aspx – Nicodemeus
@Zenuka, aggiornerò, grazie. – Nicodemeus