Flakey clean/update/build on one project

We currently have 16 projects with 33 build configurations running on Team City 4.0.2. All projects share the same VCS Root and pretty much share a similar referencing scheme. We have enterprise (global) projects referenced by ..\..\ syntax to the actual library code from project code. We then use check out rules to specify which directories are referenced by the particular build configuration.

All is working well except one build configuration, it is very flakey. It will build fine one day and then the next it doesn't build. We've dug deep into it and it looks like it's sometimes not following all of the checkout rules we specify. Here are our rules:

+:CentRic/Crop Insurance/1.1.0/CropInsurance.DocumentStorage
+:CentRic/Crop Insurance/1.1.0/CropInsurance.BusinessLayer
+:CentRic/Crop Insurance/1.1.0/CropInsurance.DataAccess
+:CentRic/Crop Insurance/1.1.0/CropInsurance.Services
+:Enterprise/SharePoint Services/VS2008
+:Enterprise/BGM Enterprise Library/VS2008
+:Assemblies


We enforced a clean check out and triggered a build and this is log we get:

[14:14:32]: Checking for changes
[14:14:36]: Clearing temporary directory: D:\ContinuousIntegration\Tools\Agent1\temp\buildTmp
[14:14:36]: Checkout directory: D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9
[14:14:36]: Getting project sources
[14:16:16]: Loading changed files from server...
[14:16:23]: Clean directory D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.Services
[14:16:23]: Clean directory D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Enterprise\BGM Enterprise Library\VS2008
[14:16:32]: Clean directory D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.BusinessLayer
[14:16:32]: Clean directory D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Enterprise\SharePoint Services\VS2008
[14:16:32]: Clean directory D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Assemblies
[14:16:37]: Clean directory D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DocumentStorage
[14:16:37]: Clean directory D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DataAccess
[14:16:37]: Updating D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Assemblies
[14:16:47]: Updating D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.BusinessLayer
[14:16:47]: Updating D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DataAccess
[14:16:47]: Updating D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DocumentStorage
[14:16:48]: Updating D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.Services
[14:16:53]: Updating D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Enterprise\SharePoint Services\VS2008
[14:16:54]: Starting build process in D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9



As you can see it cleans the Bgm Enterprise Library directory, but does not update it ... at least that's what the log says. When I look at the directories, it actually does download the source. So that is a bit confusing. But if you look further into the build log you see it can't find the dlls:

[14:17:23]: sln2008 output: Done Building Project "D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DocumentStorage\CropInsurance.DocumentStorage.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_3ba9c2c349494a0887a58ba85a300256 target(s)) -- FAILED. Build FAILED. "D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DocumentStorage\CropInsurance.DocumentStorage.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_3ba9c2c349494a0887a58ba85a300256 target) (1) -> (Build_TeamCity_generated_3ba9c2c349494a0887a58ba85a300256 target) -> ..\..\..\..\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary.WebControls\BgmCollaboration.EnterpriseLibrary.WebControls.vbproj : Solution file warning MSB4122: Scanning project dependencies for project "..\..\..\..\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary.WebControls\BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" failed. The project file "D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DocumentStorage\..\..\..\..\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary.WebControls\BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" was not found. "D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DocumentStorage\CropInsurance.DocumentStorage.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_3ba9c2c349494a0887a58ba85a300256 target) (1) -> "D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DocumentStorage\CropInsurance.DocumentStorage.sln" (Rebuild target) (2) -> "D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary\BgmCollaboration.EnterpriseLibrary.vbproj" (Rebuild target) (4:3) -> (CoreCompile target) -> D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary\Mappers\Mapper.vb(264): warning BC40000: 'Public Shared Sub LoadObject(transferObject As IMappable, row As System.Data.DataRow, mappingEntries As System.Collections.Generic.List(Of MappingEntry))' is obsolete: 'Use sub LoadObjectByField'. D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary\Mappers\Mapper.vb(322): warning BC40000: 'BgmCollaboration.EnterpriseLibrary.BusinessEntities.EntityBase' is obsolete: 'Please replace with IMappable and new Mapper methods.'. D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary\Mappers\Mapper.vb(345): warning BC40008: 'Private Shared Sub SetMappedFieldValue(transferObject As BusinessEntities.EntityBase, memberField As System.Reflection.FieldInfo, row As System.Data.DataRow, columnName As String)' is obsolete. D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary\Mappers\Mapper.vb(380): warning BC40000: 'BgmCollaboration.EnterpriseLibrary.BusinessEntities.EntityBase' is obsolete: 'Please replace with IMappable and new Mapper methods.'. "D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DocumentStorage\CropInsurance.DocumentStorage.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_3ba9c2c349494a0887a58ba85a300256 target) (1) -> "D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\CentRic\Crop Insurance\1.1.0\CropInsurance.DocumentStorage\CropInsurance.DocumentStorage.sln" (Rebuild target) (2) -> "D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary.WebControls\BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target) (3) -> (CoreCompile target) -> vbc : Command line error BC2017: could not find library 'D:\ContinuousIntegration\Tools\Agent1\work\dcbdde85f969f1f9\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary\bin\BgmCollaboration.EnterpriseLibrary.dll' vbc : Fatal error BC2000: compiler initialization failed unexpectedly: The filename, directory name, or volume label syntax is incorrect. 5 Warning(s) 2 Error(s) Time Elapsed 00:00:13.52
[14:17:23]: Process exit code: 1


So what we're seeing is projects failing to build because it cannot find a dll. But in terms of the file system, it actually has the source and really does build the dll. So we are very confused at this problem and the logs, are there any ideas on how to get this working consistently?


Thanks,


Dan Lash
6 comments
Comment actions Permalink

Further investigation has found that MSBuild or some other player is building our WebControls project before it's building our EnterpriseLibrary project. WebControls has a reference to EnterpriseLibrary, so it should not build it first. You can see here, the first thing it does is try to scan the WebControls project for dependencies, but somehow fails to find the project. Even after that, it continues on trying to build the WebControls dll with a reference to the EnterpriseLibrary dll, which it cannot find either.

[15:03:47]: Updating D:\ContinuousIntegration\Tools\Agent3\work\f539f111536fc275\Enterprise\SharePoint Services\VS2008
[15:03:49]: Starting build process in D:\ContinuousIntegration\Tools\Agent3\work\f539f111536fc275
[15:03:55]: Project "CropInsurance.DocumentStorage.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_97caf5b450ef4d7696ec7bfa0600733c target(s)):
[15:03:56]:  [Project "CropInsurance.DocumentStorage.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_97caf5b450ef4d7696ec7bfa0600733c target(s)):] ..\..\..\..\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary.WebControls\BgmCollaboration.EnterpriseLibrary.WebControls.vbproj warning MSB4122: Scanning project dependencies for project "..\..\..\..\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary.WebControls\BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" failed. The project file "D:\ContinuousIntegration\Tools\Agent3\work\f539f111536fc275\CentRic\Crop Insurance\1.1.0\CropInsurance.DocumentStorage\..\..\..\..\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary.WebControls\BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" was not found.
[15:03:56]:  [Project "CropInsurance.DocumentStorage.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_97caf5b450ef4d7696ec7bfa0600733c target(s)):] Project "CropInsurance.DocumentStorage.sln" (Rebuild target(s)):
[15:03:56]:   [Project "CropInsurance.DocumentStorage.sln" (Rebuild target(s)):] Building solution configuration "Debug|Any CPU".
[15:03:56]:   [Project "CropInsurance.DocumentStorage.sln" (Rebuild target(s)):] Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):
[15:03:56]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] Creating directory "obj\Debug\".
[15:03:56]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] Creating directory "bin\Debug\".
[15:03:56]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] Project "BgmCollaboration.EnterpriseLibrary.vbproj" (GetTargetPath target(s)):
[15:03:56]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] Project "BgmCollaboration.EnterpriseLibrary.vbproj" (GetNativeManifest target(s)):
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] Primary reference "BgmCollaboration.EnterpriseLibrary".
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):]     Could not find dependent files. Expected file "D:\ContinuousIntegration\Tools\Agent3\work\f539f111536fc275\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary\bin\BgmCollaboration.EnterpriseLibrary.dll" does not exist.
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):]     Could not find dependent files. The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):]     Resolved file path is "D:\ContinuousIntegration\Tools\Agent3\work\f539f111536fc275\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary\bin\BgmCollaboration.EnterpriseLibrary.dll".
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):]     Reference found at search path location "".
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] Processing resource file "My Project\Resources.resx" into "obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.Resources.resources".
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] Processing resource file "Dialogs\AssociatorDialog.aspx.resx" into "obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.Dialogs.AssociatorDialog.resources".
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] Processing resource file "Dialogs\ValidationDialog.aspx.resx" into "obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.Dialogs.ValidationDialog.resources".
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] Processing resource file "Dialogs\ErrorDialog.aspx.resx" into "obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.Dialogs.ErrorDialog.resources".
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] Processing resource file "Dialogs\OkDialog.aspx.resx" into "obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.Dialogs.OkDialog.resources".
[15:03:57]:    [Project "BgmCollaboration.EnterpriseLibrary.WebControls.vbproj" (Rebuild target(s)):] C:\Windows\Microsoft.NET\Framework\v3.5\Vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Diagnostics,System.Linq,System.Xml.Linq /optioncompare:Binary /optionexplicit+ /optionstrict+ /optioninfer+ /rootnamespace:BgmCollaboration.EnterpriseLibrary.WebControls /doc:obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.xml /define:"CODE_ANALYSIS=-1,CONFIG=\"Debug\",DEBUG=-1,TRACE=-1,_MyType=\"Windows\",PLATFORM=\"AnyCPU\"" /reference:"D:\ContinuousIntegration\Tools\Agent3\work\f539f111536fc275\Enterprise\BGM Enterprise Library\VS2008\BgmCollaboration.EnterpriseLibrary\bin\BgmCollaboration.EnterpriseLibrary.dll","C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll","C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll",C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll,"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Web.Extensions.dll",C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll,"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /out:obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.dll /resource:obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.Resources.resources /resource:obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.Dialogs.AssociatorDialog.resources /resource:obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.Dialogs.ValidationDialog.resources /resource:obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.Dialogs.ErrorDialog.resources /resource:obj\Debug\BgmCollaboration.EnterpriseLibrary.WebControls.Dialogs.OkDialog.resources /resource:MasterPages\CRMDashboard.Master,BgmCollaboration.EnterpriseLibrary.WebControls.CRMDashboard.Master /resource:MasterPages\CRMDashboardAjaxLeftNav.Master,BgmCollaboration.EnterpriseLibrary.WebControls.CRMDashboardAjaxLeftNav.Master /resource:MasterPages\CRMDetail.Master,BgmCollaboration.EnterpriseLibrary.WebControls.CRMDetail.Master /resource:MasterPages\CRMDetailLeftNav.Master,BgmCollaboration.EnterpriseLibrary.WebControls.CRMDetailLeftNav.Master /resource:MasterPages\Dialog.Master,BgmCollaboration.EnterpriseLibrary.WebControls.Dialog.Master /resource:MasterPages\SimpleDialog.Master,BgmCollaboration.EnterpriseLibrary.WebControls.SimpleDialog.Master /resource:MasterPages\FrameContent.Master,BgmCollaboration.EnterpriseLibrary.WebControls.FrameContent.Master /resource:MasterPages\CRMDetailAjaxLeftNav.Master,BgmCollaboration.EnterpriseLibrary.WebControls.CRMDetailAjaxLeftNav.Master /resource:MasterPages\CRMDashboardLeftNav.Master,BgmCollaboration.EnterpriseLibrary.WebControls.CRMDashboardLeftNav.Master /resource:MasterPages\TabbedFrameContent.Master,BgmCollaboration.EnterpriseLibrary.WebControls.TabbedFrameContent.Master /resource:Behaviors\CrmTabBar.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmTabBar.htc /resource:Behaviors\CrmPopupMenuButton.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmPopupMenuButton.htc /resource:Behaviors\CrmPopupMenuItem.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmPopupMenuItem.htc /resource:Behaviors\CrmPopupMenuButtonRightAligned.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmPopupMenuButtonRightAligned.htc /resource:Behaviors\CrmButton.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmButton.htc /resource:Behaviors\CrmQbuttonGlow.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmQbuttonGlow.htc /resource:Behaviors\CrmSearchHint.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmSearchHint.htc /resource:Behaviors\datetime.htc,BgmCollaboration.EnterpriseLibrary.WebControls.datetime.htc /resource:Behaviors\datetimeCalendar.htc,BgmCollaboration.EnterpriseLibrary.WebControls.datetimeCalendar.htc /resource:Behaviors\datetimeNavigation.htc,BgmCollaboration.EnterpriseLibrary.WebControls.datetimeNavigation.htc /resource:Behaviors\CrmGridViewFrame.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmGridViewFrame.htc /resource:Behaviors\CrmGridViewHeader.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmGridViewHeader.htc /resource:Behaviors\CrmGridViewRow.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmGridViewRow.htc /resource:Behaviors\entityassociator.htc,BgmCollaboration.EnterpriseLibrary.WebControls.entityassociator.htc /resource:Behaviors\entityassociatorbutton.htc,BgmCollaboration.EnterpriseLibrary.WebControls.entityassociatorbutton.htc /resource:Behaviors\quickhelp.htc,BgmCollaboration.EnterpriseLibrary.WebControls.quickhelp.htc /resource:Behaviors\personpicker.htc,BgmCollaboration.EnterpriseLibrary.WebControls.personpicker.htc /resource:Script\recordlookup.htc,BgmCollaboration.EnterpriseLibrary.WebControls.recordlookup.htc /resource:Behaviors\CrmVerticalMenuHeader.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmVerticalMenuHeader.htc /resource:Behaviors\CrmVerticalMenuItem.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmVerticalMenuItem.htc /resource:Behaviors\CrmMSRibbonButton.htc,BgmCollaboration.EnterpriseLibrary.WebControls.CrmMSRibbonButton.htc /resource:imgs\16_help.gif,BgmCollaboration.EnterpriseLibrary.WebControls.16_help.gif /resource:imgs\16_reports.gif,BgmCollaboration.EnterpriseLibrary.WebControls.16_reports.gif /resource:imgs\16_save.gif,BgmCollaboration.EnterpriseLibrary.WebControls.16_save.gif /resource:imgs\16_saveClose.gif,BgmCollaboration.EnterpriseLibrary.WebControls.16_saveClose.gif /resource:imgs\16_send.gif,BgmCollaboration.EnterpriseLibrary.WebControls.16_send.gif /resource:imgs\Accounts.gif,BgmCollaboration.EnterpriseLibrary.WebControls.Accounts.gif /resource:imgs\AdvanceFind.gif,BgmCollaboration.EnterpriseLibrary.WebControls.AdvanceFind.gif /resource:imgs\appmenu_back.gif,BgmCollaboration.EnterpriseLibrary.WebControls.appmenu_back.gif /resource:imgs\app_titlebar.gif,BgmCollaboration.EnterpriseLibrary.WebControls.app_titlebar.gif /resource:imgs\btn_rest.gif,BgmCollaboration.EnterpriseLibrary.WebControls.btn_rest.gif /resource:imgs\Competitors.gif,BgmCollaboration.EnterpriseLibrary.WebControls.Competitors.gif /resource:imgs\Contact.gif,BgmCollaboration.EnterpriseLibrary.WebControls.Contact.gif /resource:imgs\excelButton.gif,BgmCollaboration.EnterpriseLibrary.WebControls.excelButton.gif /resource:imgs\followUp.gif,BgmCollaboration.EnterpriseLibrary.WebControls.followUp.gif /resource:imgs\form_back.gif,BgmCollaboration.EnterpriseLibrary.WebControls.form_back.gif /resource:imgs\form_toolbar_back.gif,BgmCollaboration.EnterpriseLibrary.WebControls.form_toolbar_back.gif /resource:imgs\gridtoolbar_back.gif,BgmCollaboration.EnterpriseLibrary.WebControls.gridtoolbar_back.gif /resource:imgs\ico_16_2_d.gif,BgmCollaboration.EnterpriseLibrary.WebControls.ico_16_2_d.gif /resource:imgs\ico_16_attach.gif,BgmCollaboration.EnterpriseLibrary.WebControls.ico_16_attach.gif /resource:imgs\imageDivider_1.gif,BgmCollaboration.EnterpriseLibrary.WebControls.imageDivider_1.gif /resource:imgs\Invoices.gif,BgmCollaboration.EnterpriseLibrary.WebControls.Invoices.gif /resource:imgs\ico_lrg_2.gif,BgmCollaboration.EnterpriseLibrary.WebControls.ico_lrg_2.gif /resource:imgs\btn_on_cal.gif,BgmCollaboration.EnterpriseLibrary.WebControls.btn_on_cal.gif /resource:imgs\btn_off_cal.gif,BgmCollaboration.EnterpriseLibrary.WebControls.btn_off_cal.gif /resource:imgs\CrmGridViewSeparator.gif,BgmCollaboration.EnterpriseLibrary.WebControls.CrmGridViewSeparator.gif /resource:imgs\CrmGridViewUpSortIndicator.gif,BgmCollaboration.EnterpriseLibrary.WebControls.CrmGridViewUpSortIndicator.gif /resource:imgs\CrmGridViewDownSortIndicator.gif,BgmCollaboration.EnterpriseLibrary.WebControls.CrmGridViewDownSortIndicator.gif /resource:imgs\CrmGridViewNextPageIndicator.gif,BgmCollaboration.EnterpriseLibrary.WebControls.CrmGridViewNextPageIndicator.gif /resource:imgs\CrmGridViewNextPageIndicatorDisabled.gif,BgmCollaboration.EnterpriseLibrary.WebControls.CrmGridViewNextPageIndicatorDisabled.gif /resource:imgs\CrmGridViewRefresh.gif,BgmCollaboration.EnterpriseLibrary.WebControls.CrmGridViewRefresh.gif /resource:imgs\buttonDivider.gif,BgmCollaboration.EnterpriseLibrary.WebControls.buttonDivider.gif /resource:imgs\16_L_help.gif,BgmCollaboration.EnterpriseLibrary.WebControls.16_L_help.gif /resource:imgs\btn_off_lookup.gif,BgmCollaboration.EnterpriseLibrary.WebControls.btn_off_lookup.gif /resource:imgs\btn_on_lookup.gif,BgmCollaboration.EnterpriseLibrary.WebControls.btn_on_lookup.gif /resource:imgs\btn_dis_lookup.gif,BgmCollaboration.EnterpriseLibrary.WebControls.btn_dis_lookup.gif /resource:imgs\gridHeaderSeparator.gif,BgmCollaboration.EnterpriseLibrary.WebControls.gridHeaderSeparator.gif /resource:imgs\16_print.gif,BgmCollaboration.EnterpriseLibrary.WebControls.16_print.gif /resource:imgs\16_delete.gif,BgmCollaboration.EnterpriseLibrary.WebControls.16_delete.gif /resource:imgs\16_literature.gif,BgmCollaboration.EnterpriseLibrary.WebControls.16_literature.gif /resource:imgs\15_find.gif,BgmCollaboration.EnterpriseLibrary.WebControls.15_find.gif /resource:imgs\noneCircle.gif,BgmCollaboration.EnterpriseLibrary.WebControls.noneCircle.gif /resource:imgs\mnu_hSpacer.gif,BgmCollaboration.EnterpriseLibrary.WebControls.mnu_hSpacer.gif /resource:imgs\page_RL0.gif,BgmCollaboration.EnterpriseLibrary.WebControls.page_RL0.gif /resource:imgs\page_RL1.gif,BgmCollaboration.EnterpriseLibrary.WebControls.page_RL1.gif /resource:imgs\page_R0.gif,BgmCollaboration.EnterpriseLibrary.WebControls.page_R0.gif /resource:imgs\page_R1.gif,BgmCollaboration.EnterpriseLibrary.WebControls.page_R1.gif /resource:imgs\page_L0.gif,BgmCollaboration.EnterpriseLibrary.WebControls.page_L0.gif /resource:imgs\page_FL0.gif,BgmCollaboration.EnterpriseLibrary.WebControls.page_FL0.gif /resource:imgs\page_FL1.gif,BgmCollaboration.EnterpriseLibrary.WebControls.page_FL1.gif /resource:imgs\page_L1.gif,BgmCollaboration.EnterpriseLibrary.WebControls.page_L1.gif /resource:imgs\qfinddown.gif,BgmCollaboration.EnterpriseLibrary.WebControls.qfinddown.gif /resource:imgs\qfindhover.gif,BgmCollaboration.EnterpriseLibrary.WebControls.qfindhover.gif /resource:imgs\MarketingLists.gif,BgmCollaboration.EnterpriseLibrary.WebControls.MarketingLists.gif /resource:imgs\mast_back.gif,BgmCollaboration.EnterpriseLibrary.WebControls.mast_back.gif /resource:imgs\menuArrow.gif,BgmCollaboration.EnterpriseLibrary.WebControls.menuArrow.gif /resource:imgs\menu_margin.gif,BgmCollaboration.EnterpriseLibrary.WebControls.menu_margin.gif /resource:imgs\mnu_actions.gif,BgmCollaboration.EnterpriseLibrary.WebControls.mnu_actions.gif /resource:imgs\Opportunity.gif,BgmCollaboration.EnterpriseLibrary.WebControls.Opportunity.gif /resource:imgs\Orders.gif,BgmCollaboration.EnterpriseLibrary.WebControls.Orders.gif /resource:imgs\printPreview.gif,BgmCollaboration.EnterpriseLibrary.WebControls.printPreview.gif /resource:imgs\Products.gif,BgmCollaboration.EnterpriseLibrary.WebControls.Products.gif /resource:imgs\qfind.gif,BgmCollaboration.EnterpriseLibrary.WebControls.qfind.gif /resource:imgs\Quotes.gif,BgmCollaboration.EnterpriseLibrary.WebControls.Quotes.gif /resource:imgs\SalesLiterature.gif,BgmCollaboration.EnterpriseLibrary.WebControls.SalesLiterature.gif /resource:imgs\statusbar_back.gif,BgmCollaboration.EnterpriseLibrary.WebControls.statusbar_back.gif /resource:imgs\tab_line.gif,BgmCollaboration.EnterpriseLibrary.WebControls.tab_line.gif /resource:imgs\tab_off_back.gif,BgmCollaboration.EnterpriseLibrary.WebControls.tab_off_back.gif /resource:imgs\transparent_spacer.gif,BgmCollaboration.EnterpriseLibrary.WebControls.transparent_spacer.gif /resource:imgs\formnav_header_back.gif,BgmCollaboration.EnterpriseLibrary.WebControls.formnav_header_back.gif /resource:imgs\ico_16_1.gif,BgmCollaboration.EnterpriseLibrary.WebControls.ico_16_1.gif /resource:imgs\ico_16_5.gif,BgmCollaboration.EnterpriseLibrary.WebControls.ico_16_5.gif /resource:imgs\ico_16_8.gif,BgmCollaboration.EnterpriseLibrary.WebControls.ico_16_8.gif /resource:imgs\ico_18_1070.gif,BgmCollaboration.EnterpriseLibrary.WebControls.ico_18_1070.gif /resource:imgs\ico_18_applicants.gif,BgmCollaboration.EnterpriseLibrary.WebControls.ico_18_applicants.gif /resource:imgs\ico_18_booking.gif,BgmCollaboration.EnterpriseLibrary.WebControls.ico_18_booking.gif /resource:imgs\navDown.gif,BgmCollaboration.EnterpriseLibrary.WebControls.navDown.gif /resource:imgs\navUp.gif,BgmCollaboration.EnterpriseLibrary.WebControls.navUp.gif /resource:imgs\nav_header_back.gif,BgmCollaboration.EnterpriseLibrary.WebControls.nav_header_back.gif /resource:imgs\nav_hover_highlight.gif,BgmCollaboration.EnterpriseLibrary.WebControls.nav_hover_highlight.gif /resource:imgs\dynbutton_rest.gif,BgmCollaboration.EnterpriseLibrary.WebControls.dynbutton_rest.gif /resource:imgs\masthead.gif,BgmCollaboration.EnterpriseLibrary.WebControls.masthead.gif /resource:imgs\dynbutton_hover.gif,BgmCollaboration.EnterpriseLibrary.WebControls.dynbutton_hover.gif /resource:Dialogs\ErrorDialog.aspx,BgmCollaboration.EnterpriseLibrary.WebControls.ErrorDialog.aspx /resource:Dialogs\LookupDialog.aspx,BgmCollaboration.EnterpriseLibrary.WebControls.LookupDialog.aspx /resource:Dialogs\AssociatorDialog.aspx,BgmCollaboration.EnterpriseLibrary.WebControls.AssociatorDialog.aspx /resource:Dialogs\OkDialog.aspx,BgmCollaboration.EnterpriseLibrary.WebControls.OkDialog.aspx /resource:Dialogs\ValidationDialog.aspx,BgmCollaboration.EnterpriseLibrary.WebControls.ValidationDialog.aspx /resource:imgs\xclIcon.JPG,BgmCollaboration.EnterpriseLibrary.WebControls.xclIcon.JPG /resource:Styles\PrintableCRM4Styles.css,BgmCollaboration.EnterpriseLibrary.WebControls.PrintableCRM4Styles.css /resource:Styles\CRM4Styles.css,BgmCollaboration.EnterpriseLibrary.WebControls.CRM4Styles.css /resource:Script\date.js,BgmCollaboration.EnterpriseLibrary.WebControls.date.js /resource:Script\BgmWebControls.js,BgmCollaboration.EnterpriseLibrary.WebControls.BgmWebControls.js /resource:Script\CrmPopupMenuButton.js,BgmCollaboration.EnterpriseLibrary.WebControls.CrmPopupMenuButton.js /target:library Controls\CrmButton.vb Controls\CrmGridView.vb Controls\CrmGridViewPager.vb Controls\CrmGridViewRefreshField.vb Controls\CrmGridViewSelectionField.vb Controls\CrmFindAndViewBar.vb Controls\CrmMenuBar.vb Controls\CrmMenuBarDivider.vb Controls\CrmMenuBarItem.vb Controls\CrmMSRibbonButton.vb Controls\CrmPopupMenu.vb Controls\CrmPopupMenuButton.vb Controls\CrmPopupMenuItem.vb Controls\CrmStatusBar.vb Controls\CrmTabBar.vb Controls\CrmTabBarItem.vb Controls\CrmVerticalMenu.vb Controls\CrmVerticalMenuBar.vb Controls\CrmVerticalMenuItem.vb Controls\CurrencyBox.vb Controls\DatePicker.vb Controls\EntityAssociator.vb Controls\EntityAssociatorItem.vb Controls\EntityAssociatorItemBuilder.vb Controls\EntityAssociatorItemCollection.vb Controls\PersonPicker.vb Controls\PersonPickerImageType.vb Controls\Lookup.vb Controls\QuickHelp.vb Controls\TabBarBuilder.vb Dialogs\AssociatorDialog.aspx.designer.vb Dialogs\AssociatorDialog.aspx.vb Dialogs\AssociatorProviders\IAssociatorProvider.vb Dialogs\ValidationDialog.aspx.designer.vb Dialogs\ValidationDialog.aspx.vb Dialogs\ErrorDialog.aspx.designer.vb Dialogs\ErrorDialog.aspx.vb Dialogs\LookupDialog.aspx.designer.vb Dialogs\LookupDialog.aspx.vb Dialogs\OkDialog.aspx.designer.vb Dialogs\OkDialog.aspx.vb EmbeddedResourceRequestHandlerWebControls.vb ICentRicAjaxEnabled.vb MasterPageBase\TabbedFrameContentPageBase.vb MasterPageBase\FrameContentPageBase.vb MasterPages\TabbedFrameContent.Master.designer.vb MasterPages\TabbedFrameContent.Master.vb MasterPages\CRMDashboardLeftNav.Master.designer.vb MasterPages\CRMDashboardLeftNav.Master.vb MasterPages\CRMDetailAjaxLeftNav.Master.designer.vb MasterPages\CRMDetailAjaxLeftNav.Master.vb MasterPages\FrameContent.Master.designer.vb MasterPages\FrameContent.Master.vb BgmVirtualizationRequestHandler.vb Utilities\CacheUtility.vb Utilities\ContextUtility.vb Utilities\ExceptionUtility.vb Utilities\FormattingUtility.vb Utilities\HtmlHelper.vb MasterPageBase\CrmDashboardContentPageBase.vb MasterPageBase\CrmDashboardLeftNavBasePage.vb MasterPageBase\CrmDetailContentPageBase.vb MasterPageBase\CrmDetailLeftNavContentPageBase.vb MasterPageBase\CrmDialogContentPageBase.vb MasterPageBase\CrmSimpleDialogContentPageBase.vb MasterPageBase\RootContentPageBase.vb MasterPageBase\RootMasterPageBase.vb MasterPages\CRMDashboard.Master.designer.vb MasterPages\CRMDashboard.Master.vb MasterPages\CRMDashboardAjaxLeftNav.Master.designer.vb MasterPages\CRMDashboardAjaxLeftNav.Master.vb MasterPages\CRMDetail.Master.designer.vb MasterPages\CRMDetail.Master.vb MasterPages\CRMDetailLeftNav.Master.designer.vb MasterPages\CRMDetailLeftNav.Master.vb MasterPages\Dialog.Master.designer.vb MasterPages\Dialog.Master.vb MasterPages\SimpleDialog.Master.designer.vb MasterPages\SimpleDialog.Master.vb "My Project\AssemblyInfo.vb" "My Project\Application.Designer.vb" "My Project\Resources.Designer.vb" "My Project\Settings.Designer.vb" VirtualPathProvider\EmbeddedResourceVirtualFile.vb VirtualPathProvider\EmbeddedResourceVirtualPathProvider.vb /warnaserror+:41999,42016,42017,42018,42019,42020,42021,42022,42032,42036

The craziest part of this whole thing, is when you view the filesystem. It actually does build the enterprise library dll, and all source for every other project is available.

0
Comment actions Permalink

Dan,

It seems we have a bit inaccurate logging in "Updating <directory>" part. The directory is probably updated but the corresponding log line is missing (we will look into this).

Other then that, I can't figure out what the TeamCity-related problem is. Can you please try to describe the problem in TeamCity terms, trying to eliminate specific issues of your build process?

Also, it is highly unrecommended to reference files on disk that are produced by another build. If you need to use the files, it is recommended to publish them as artifacts and use TeamCity's [http://www.jetbrains.net/confluence/display/TCD4/Dependent+Build#DependentBuild-ArtifactDependency artifact dependencies].

--
Best regards,

Yegor Yarko
Project Manager (TeamCity)
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

I agree that referencing other builds wouldn't make sense. We are not. What we do is enumerate the directories that contain the sources for our application. Each directory usually is a collection of code that produces a dll. Then our build process links our library code to our application code.

In terms of TeamCity language, I don't know if there is anything I can say other than "it works on my machine."

One thing I was trying to do is repeat the build commands it was executing, but it seems to be too long for the console. I will look into maybe executing the commands from another application, but I'm wondering how TeamCity does it.

Thanks for looking into logging, if it's inaccurate logging then we have nothing to go on...

0
Comment actions Permalink

We were able to fix our problem. Unfortunatley we're not 100% sure of how we fixed it. We think it must be one of these two things:

1) some sort of mal-formed solution file, or mis-linked project from within the solution

We did some examinations and this didn't seem like the case, but we can't be sure.


2) the location of the solution file in relation to other project files

All of our projects (except this one) have a directory structure like this:

\Enterprise\EnterpriseLibrary.proj
\Application\ApplicationProjectA\A.proj
\Application\ApplicationProjectB\B.proj
\Application\Application.sln

This project had a directory structure like this:

\Enterprise\EnterpriseLibrary.proj
\Application\ApplicationProjectA\A.proj
\Application\ApplicationProjectB\B.proj
\Application\ApplicationProjectB\Application.sln


Even though Visual Studio would build the project with the non-standard location of our sln file, we are thinking it may have messed some \..\..\  type of syntax to get to other projects. But again, we can't be sure.

In the end, we created a new solution file in the 'proper' directory, and we can now build and rebuild without false failures.


Thanks,

Dan Lash

0
Comment actions Permalink

Dan,

I think you can try to perform the build in agent's checkout direcotry the way you do it on your local machine and see if that works.

If you use MSBuild runner, the command line logged ito the teamcity-agent.log will probably be not executable because it uses a generated bootstrap script that is not availabel when not inside TeamCity build.

0
Comment actions Permalink

Dan,

Thank you for letting us know.

Good builds with TeamCIty!

0

Please sign in to leave a comment.