Build error when building shared assembly in TFS. An error was encountered when processing operation
we have 2 solution. 1 wpf solution, , 1 web solution (wcf). 1 project used in both solutions. when building @ tfs server, following error
log-file output:
c:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\microsoft.web.publishing.targets(4377,5): warning : error encountered when processing operation 'create file' on '<name>.common.entities.dll'. [c:\builds\14\<name>\2. test.<name>services\sources\<name>source\<name>.server.webserverhost\<name>.server.webserverhost.csproj]
c:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\microsoft.web.publishing.targets(4377,5): warning : retrying operation 'update' on object filepath (default web site/<name>services\bin\<name>.common.entities.dll). attempt 1 of 2. [c:\builds\14\<name>\2. test.<name>services\sources\<name>source\<name>.server.webserverhost\<name>.server.webserverhost.csproj]
c:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\microsoft.web.publishing.targets(4377,5): error : web deployment task failed. ((02.08.2013 10:34:11) error occurred when request processed on remote computer.) [c:\builds\14\<name>\2. test.<name>services\sources\<name>source\<name>.server.webserverhost\<name>.server.webserverhost.csproj]
c:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\microsoft.web.publishing.targets(4377,5): error : [c:\builds\14\<name>\2. test.<name>services\sources\<name>source\<name>.server.webserverhost\<name>.server.webserverhost.csproj]
c:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\microsoft.web.publishing.targets(4377,5): error : (02.08.2013 10:34:11) error occurred when request processed on remote computer. [c:\builds\14\<name>\2. test.<name>services\sources\<name>source\<name>.server.webserverhost\<name>.server.webserverhost.csproj]
c:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\microsoft.web.publishing.targets(4377,5): error : stream data of 'c:\builds\14\<name>\2. test.<name>services\sources\<name>source\<name>.server.webserverhost\obj\test\package\packagetmp\bin\<name>.common.entities.dll' not yet available. [c:\builds\14\<name>\2. test.<name>services\sources\<name>source\<name>.server.webserverhost\<name>.server.webserverhost.csproj]
publish failed deploy.
done building project "c:\builds\14\<name>\2. test.<name>services\sources\<name>source\<name>.server.webserverhost\<name>.server.webserverhost.csproj" (default targets) -- failed.
anyone got idea on how around this?
kjaps
hi kjaps,
thanks post.
you’re using tfs 2012? if yes, you’re using tfs 2012 update 2 or update 3?
you create 2 build definitions build wpf solution , wcf solution, both these 2 build definitions occurred same issue when queue them?
that 1 project existing in 2 solution folder separately, or 1 project existing in third folder, 2 solutions both reference third folder?
to build solution using team build 2012, should ensure following steps:
1 the solution can built on build machine using vs 2012.
2 ensure tfs build service account have permission build solution on build machine.
3 ensure solution can built on build machine using msbuild v4.0 command line manually.
additionally, build solution using team build, need ensure team build service can find required dlls on build machine. using following 2 way reference dlls when using team build:
1 create assemblies folder under solution, , add dlls in folder. after check in solution tfs, team build service solution tfs build on build machine, in case, assemblies folder under solution together. structure this:
teamproject
/solution1
/assemblies
/poject1
/poject2
/…
/solution2
…
2 create same common folder on build machine created on client, , folder path same. when team build build solution on build machine, try find dlls on build machine follow path set in project.
if 2 solutions both need 1 project, suggest branch project 2 solution folders separately, use/reference project solution folder directly. below structure:
/wpf-solution
/project
/wpf-project
/…
/wcf-solution
/project
/wcf-project
/…
john qiao [msft]
msdn community support | feedback us
develop , promote apps in windows store
please remember mark replies answers if , unmark them if provide no help.
Archived Forums V > Team Foundation Server - Build and release management
Comments
Post a Comment