Picking a wrong dll after installing TFS Server 2008
- Hi,
currently, I am using TFS Build 2005 for our project.
recently we moved to TFS Build 2005 to TFS Build 2008.
so, we uninstalled 2005 and installed 2008 in our server.
now, when i run the CI build on this server it is giving me an assembly error.
"Could not load file or assembly 'Microsoft.TeamFoundation.Build.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available."
I checked in GAC and i found that there is a file but version is 9.0.0.0
'Microsoft.TeamFoundation.Build.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
But it it not picking a new file. so, can anybody help me regarding this issue ?
Thanks- Changed TypeRuiz YiModeratorFriday, October 30, 2009 4:49 AMCustomer is unresponsive
- Changed TypeRuiz YiModeratorThursday, November 05, 2009 6:46 AMFixed
Answers
We contacted with email and find a custom task refer to version 8.0. Finally solved that problem by just removing the references again and add.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi- Marked As Answer byRuiz YiModeratorThursday, November 05, 2009 6:48 AM
All Replies
- Hi,
Can you check your CI scripts for a line similar with this one:
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets" />
and change it to:
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets" />
Thanks,
Alin,
PRAKTIK Consulting
TFS Hosting and TFS Consulting Services. - Hi Alin,
Thanks for your prompt reply.
I have checked in my project and it's mapped to "<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets" />" this path only.
what can be other cause ?
Thanks & Regards, - Hi newindonet,
What yhe version of TFS? TFS2005?
If you are running the Visual Studio Team System 2008 version of Team Foundation Server on the application-tier server, you cannot run the Visual Studio 2005 Team System version of Team Foundation Build on the build computer.
If you are running the Visual Studio 2005 Team System version of Team Foundation Server on the application-tier server, you cannot run the Visual Studio Team System 2008 version of Team Foundation Build on the build computer.
Best Regards,
Ruiz
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi - Hi newindonet,
What yhe version of TFS? TFS2005?
If you are running the Visual Studio Team System 2008 version of Team Foundation Server on the application-tier server, you cannot run the Visual Studio 2005 Team System version of Team Foundation Build on the build computer.
If you are running the Visual Studio 2005 Team System version of Team Foundation Server on the application-tier server, you cannot run the Visual Studio Team System 2008 version of Team Foundation Build on the build computer
Best Regards,
Ruiz
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi - Hi,
Currently. I am using Visual Studio Team System 2008 but before that I was using Visual Studio 2005 Team System.
Then we migrated TFS 2005 to TFS 2008. So right now we are using TFS 2008.
Everything is working fine expect CI Build.
Thanks & Regard - Hi,
Do you mean that TFS2008 installed on a different server from original TFS2005 App Tier, but TFSBuild2008 is installed on the same machine after TFSBuild2005 is uninstalled?
And What the version of the client Team Explorer? Is the build definition created by TFS2005 or TFS2008?
Best Regards,
Ruiz
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi - Hi Ruiz,
Below are the answers of your queries
In my case TFS2005 and TFS2008 are installed on difference machines and I have different TFSBuildServer where I installed TFS Build Service.
Yes - TFSBuild2008 is installed on the same machine after TFSBuild2005 is uninstalled.
Team Explorer version is : Visual Studio 2008 Team Explorer
Yes, Build Definition is created by TFS2008. Other Build Definition is working fine expect CI.
For CI Build I am getting Two errors.
1) Picking a wrong dll after installting TFSBuild2008
2) Compiling Sources for Any CPU/Release. Project "TFSBuild.proj" is building "xxx.sln" with default targets.
Thanks & Regards - Hi newindonet,
Could you post the TFSBuild.proj and buildlog so that I can get detail error info?
What the experted result for error 2?
Best Regards,
Ruiz
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi Hi,
TFSBuild.proj file..
----------------------------------TFSBuild.proj------------
<?<
<
</
</
</
SolutionToBuild Include="$(BuildProjectFolderPath)/xxx1.sln"><
Targets></Targets><
Properties></Properties></
SolutionToBuild><
SolutionToBuild Include="$(BuildProjectFolderPath)/xxx2.sln"><
Targets></Targets><
Properties></Properties></
SolutionToBuild></
ItemGroup><
ItemGroup><
ConfigurationToBuild Include="Release|Any CPU"><
FlavorToBuild>Release</FlavorToBuild><
PlatformToBuild>Any CPU</PlatformToBuild></
ConfigurationToBuild></
ItemGroup><
ItemGroup> ItemGroup><
PropertyGroup> PropertyGroup><
ItemGroup> ItemGroup><
Import Project="xxx.targets" /></
Project>xml version="1.0" encoding="utf-8"?><
Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets" /><
ProjectExtensions><
ProjectFileVersion>2</ProjectFileVersion><
Description></Description><
BuildMachine>xxx</BuildMachine></
ProjectExtensions><
PropertyGroup><
TeamProject>xxx</TeamProject><
BuildDirectoryPath>C:\CI</BuildDirectoryPath><
DropLocation>\\xxx\CIDROP</DropLocation><
RunTest>false</RunTest><
RunCodeAnalysis>Never</RunCodeAnalysis><
WorkItemType>Bug</WorkItemType><
WorkItemFieldValues>System.Reason=Build Failure;System.Description=Start the build using Team Build</WorkItemFieldValues><
WorkItemTitle>Build failure in build:</WorkItemTitle><
BuildlogText>The build log file is at:</BuildlogText><
ErrorWarningLogText>The errors/warnings log file is at:</ErrorWarningLogText><
UpdateAssociatedWorkItems>true</UpdateAssociatedWorkItems><
CustomPropertiesForClean></CustomPropertiesForClean><
CustomPropertiesForBuild></CustomPropertiesForBuild></
PropertyGroup><
ItemGroup><
SolutionToBuild Include="$(BuildProjectFolderPath)/xxx.sln"><
Targets></Targets><
Properties></Properties></
SolutionToBuild>- Hi newindonet,
It seems that there is some format problem to display this thread, could you send TFSBuild.proj and buildlog to me (v-ruizyi at microsoft.com)
And what the experted result for error 2?
Best Regards,
Ruiz
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
We contacted with email and find a custom task refer to version 8.0. Finally solved that problem by just removing the references again and add.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi- Marked As Answer byRuiz YiModeratorThursday, November 05, 2009 6:48 AM


