Team Foundation Server - Build Automation ForumDiscuss Team Foundation Server's build automation features.© 2009 Microsoft Corporation. All rights reserved.Wed, 25 Nov 2009 08:22:59 Z02db4821-3b55-4f15-8844-8cedc8e51558http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/93bf96f4-93d4-4629-8c58-abe5c46f2d39http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/93bf96f4-93d4-4629-8c58-abe5c46f2d39Mystagoguehttp://social.msdn.microsoft.com/Profile/en-US/?user=MystagogueAvoiding Builds When PossibleI would like to avoid building targets that (a) have already been built and (b) have not changed since the last build.<br/><br/>This is important for several reasons: (1) it reduces the size of deployments to customers for updated modules (2) it prevents bumping DLL/assembly versions for binaries that didn't really change (which in turn means we don't have to apply our digital signing process all over again).<br/><br/>To achieve this goal, I think it may be necessary to keep all binaries (from VC++ or C#) in source control, so that MSBuild can &quot;see&quot; the target already exists - and test if contributing source file dates have changed - so that it knows to build what has changed, but leave alone whatever has not.<br/><br/>Can someone share a strategy of how to accomplish this?<br/><br/>I know that Perforce had a feature that enabled this outcome: binaries placed in source control could be given an &quot;always writable&quot; attribute.  They would be checked back in only if the hash of the file changed since the last sync.  The build-system used file dates to determine what actually needed to be built again.  What tools or techniques does TFS provide for this?<hr class="sig">-Brent AriasTue, 24 Nov 2009 20:52:26 Z2009-11-25T08:22:58Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/61ca6f26-6381-4045-9bd2-1f487ff01dfchttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/61ca6f26-6381-4045-9bd2-1f487ff01dfcJim Lambhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jim%20LambNew Blog Post : How to create a custom workflow activity for TFS Build 2010<p><a href="http://blogs.msdn.com/jimlamb/archive/2009/11/18/how-to-create-a-custom-workflow-activity-for-tfs-build-2010.aspx">http://blogs.msdn.com/jimlamb/archive/2009/11/18/how-to-create-a-custom-workflow-activity-for-tfs-build-2010.aspx</a></p>Sat, 21 Nov 2009 12:44:04 Z2009-11-25T02:18:46Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/2f53587d-11b5-48c4-a148-b6d6a06b3d23http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/2f53587d-11b5-48c4-a148-b6d6a06b3d23xcom0911http://social.msdn.microsoft.com/Profile/en-US/?user=xcom0911MSBUILD 64-bit version1. Is there a 64-bit version of MSBUILD..?<br/>2. Does it work with or is it certified for Team Build..?Fri, 13 Nov 2009 14:34:04 Z2009-11-25T00:26:32Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/2a153896-8b22-404c-b951-5c9ed59a9b3ahttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/2a153896-8b22-404c-b951-5c9ed59a9b3aschwennhttp://social.msdn.microsoft.com/Profile/en-US/?user=schwennPost Build Event console app executable runs fine in IDE build, but fails to run in Team BuildDear Team Builders<br/> <br/> I'm Team Building a Solution with three Projects.  Most of the code is unmanaged C++.  The third project &quot;HFTGTest&quot; to build produces a console application &quot;hftgtest.exe&quot; (and the library it is dependent on LpsTktHFT.dll has been produced earlier by the first build of the three projects). <br/> <br/> In a post build step for HFTGTest the cmd line calls for the execution of &quot;hftgtest.exe&quot; .  This works fine in a local VS2008 IDE build, and hftgtest.exe's output is presented in the output window for the build.  Hftgtest.exe also runs fine on the build server machine if run from a Windows logon (i.e. in the Windows visual environment and not under the Team Build umbrella.)  It fails to execute under Team Build.<br/> <br/> The MSBuild output shows no error for this post build event execution attempt.<br/> <br/> I believe this may be happending either because somehow user tfsservice (ie. Team Build) doesn't have execute access to the ..binaries\win32\Release\ where the target is stored (which seems unlikely since tfsservice built the targets and placed them there.)<br/> OR<br/> because the IDE is a visual environment that naturally puts up a command window in which to run this console app, but that Team Build is running on the Build server in a non-interactive no-visuals environment (i.e. as a Windows Service) and fails when asked to execute a console app (but this seems unlikely too because hftgtest.exe can be run in a non-visual mode from as a scheduled task (schtasks) (as long as the schtask invocation is not from Team Build)<br/> <br/> I'm only guessing about these two possible sources for the error, and am looking for more input.<br/> <br/> Any ideas?<br/> <br/> Thanks,<br/> <br/> Peter Schwenn<br/> <br/> notes: <br/> 1) My workstation is a PC running 32-bit XP SP3 with VS2008, and my build server is running 64-bit Windows Server 2003 with Team Build 2008, and the TFS server is TFS2008.<br/> 2) Hftgtest.exe 's purpose is to run unit tests (not standard unit tests in the VS2008 build framework but ones I've written myself) on the methods of the first built of this solution's three projects.<br/> 3) I have verified that simple .bat's (file copies and such) run fine if substituted as the post build event in question<br/> 4) If I use &quot;...hftgtest.exe &gt; test.txt&quot; as my post build event cmd line, test.txt is created but empty which verifies that Team Build has &quot;tried&quot; to execute hftgtest.exe<br/> 5) I have tried the post build event cmd line with and without a prefacing cmd &quot;...&quot;, and with start /b &quot;...&quot;<br/> <hr class=sig> schwennMon, 28 Sep 2009 20:08:30 Z2009-11-24T18:13:10Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/611f5a95-6da8-49cc-ba35-b7d0e3a54e46http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/611f5a95-6da8-49cc-ba35-b7d0e3a54e46Emma Middlebrookhttp://social.msdn.microsoft.com/Profile/en-US/?user=Emma%20MiddlebrookTFS build 2008 - BuildNumberOverrideTarget DependsOn not executing in correct order for initial build<p>Hi,</p> <p>I've created a tfsbuild.proj file that builds a release version of my solution and in it I have created a custom target for BuildNumberOverrideTarget that handles custom versioning. I store the version number in a file location in TFS and the custom task will get the version number, check out the assemblyinfo.cs files, edit the version details, check in and then increment the version number for the next build.</p> <p>This was all working fine but only if you have let TFS do the very first build before adding the versioning changes to your tfsbuild.proj file, it's as if it relies on the Sources\ directory structure to already exist from an earlier build. So if you decide to branch your source and run a build as is, it will fail with a weird error like:</p> <p>    Target &quot;InitializeWorkspace&quot; skipped. Previously built successfully.<br/>    Target &quot;BuildNumberOverrideTarget&quot; in file &quot;e:\tfstemp\TestProject\TestProject MainBranch Release\BuildType\TFSBuild.proj&quot; from project &quot;e:\tfstemp\TestProject\TestProject MainBranch Release\BuildType\TFSBuild.proj&quot;:<br/>    Task &quot;Message&quot;<br/>      Loading last build number from file &quot;e:\tfstemp\TestProject\TestProject MainBranch Release\BuildType\..\Sources\Version Number\buildnumber.txt&quot;<br/>    Done executing task &quot;Message&quot;.<br/>    Using &quot;Exec&quot; task from assembly &quot;Microsoft.Build.Tasks.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;.<br/>    Task &quot;Exec&quot;<br/>      Command:<br/>      &quot;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\..\tf.exe&quot; get /force /noprompt /overwrite buildnumber.txt<br/>    e:\tfstemp\TestProject\TestProject MainBranch Release\BuildType\TFSBuild.proj(472,5): error MSB6003: The specified task executable &quot;cmd.exe&quot; could not be run. The directory name is invalid<br/>    Done executing task &quot;Exec&quot; -- FAILED.<br/>    Done building target &quot;BuildNumberOverrideTarget&quot; in project &quot;TFSBuild.proj&quot; -- FAILED.<br/>    Done Building Project &quot;e:\tfstemp\TestProject\TestProject MainBranch Release\BuildType\TFSBuild.proj&quot; (EndToEndIteration target(s)) -- FAILED.<br/>    <br/>    Build FAILED.</p> <p>After some research I found the following post, which states that the ordering is not correct if you want to override the build number target. It suggests either respecifying the order of execution or to add the DependsOnTarget to the BuildNumberOverrideTarget.</p> <p>[http://social.msdn.microsoft.com/forums/en-US/tfsbuild/thread/9103c92d-4b03-41d4-9eae-93c78cb6ea3a/][1]</p> <p><br/>  [1]: <a href="http://social.msdn.microsoft.com/forums/en-US/tfsbuild/thread/9103c92d-4b03-41d4-9eae-93c78cb6ea3a/">http://social.msdn.microsoft.com/forums/en-US/tfsbuild/thread/9103c92d-4b03-41d4-9eae-93c78cb6ea3a/</a></p> <p>I have tried both suggestions in the post but I just can't seem to get it to run, the build error seems to skip the InitializeWorkspace. When I look at the Build Server Folder structure it only ever has the BuildTypes folder present, the other folders are not present, so I would expect it to fail to checkout Sources\Folder\file.txt as it is not present.</p> <p>I have had a workaround in place that partially works but we then see errors in branched areas about a workspace not existing. Our workaround was to make the directory structure in the BuildNumberOverrideTarget with the following edits to the tfsbuild.proj file:</p> <p>    &lt;Target Name=&quot;BuildNumberOverrideTarget&quot;&gt;<br/>        &lt;!-- Create a custom build number, matching the assembly version --&gt;<br/>        &lt;Message Text=&quot;Loading last build number from file &amp;quot;$(MSBuildProjectDirectory)\..\Sources\Version Number\buildnumber.txt&amp;quot;&quot; /&gt;<br/>    <br/>        &lt;!--need to ensure that the sources folder exists--&gt;<br/>        &lt;PropertyGroup&gt;<br/>          &lt;SourcesDirectory&gt;$(MSBuildProjectDirectory)\..\Sources\Version Number&lt;/SourcesDirectory&gt;<br/>        &lt;/PropertyGroup&gt;<br/>        &lt;MakeDir Directories=&quot;$(SourcesDirectory)&quot;/&gt;<br/>    <br/>        &lt;Exec Command=&quot;$(TF) get /force /noprompt /overwrite buildnumber.txt&quot;<br/>              WorkingDirectory=&quot;$(MSBuildProjectDirectory)\..\Sources\Version Number\&quot;&gt;<br/>        &lt;/Exec&gt;<br/>    <br/>        &lt;Exec Command=&quot;$(TF) checkout buildnumber.txt&quot;<br/>          WorkingDirectory=&quot;$(MSBuildProjectDirectory)\..\Sources\Version Number\&quot; IgnoreExitCode=&quot;true&quot;&gt;<br/>        &lt;/Exec&gt;<br/>      ... rest omitted to keep short...<br/>    &lt;/Target&gt;</p> <p>Is there a way that I can force msbuild when it runs to automatically get the entire source structure before attempting to run any of my custom targets? We're doing a release build and I don't like the idea that maybe it is trying to cache old versions of files and folder structures. Is there another way that I can get the DependsOnTarget to work properly or would the version tasks that I am executing be better placed in a different target, one that occurs after the first get??</p> <p>Many thanks,</p> <p>Emma</p>Thu, 19 Nov 2009 14:28:54 Z2009-11-24T17:38:55Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/9976ef30-b679-4927-a315-0d39fc004949http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/9976ef30-b679-4927-a315-0d39fc004949Antoine Fhttp://social.msdn.microsoft.com/Profile/en-US/?user=Antoine%20FMaking a property mandatoryIs it possible to make a property mandatory?<br/><br/>In my database project, I defined a VersionNo property which is assigned to a sqlcmdvar variable.<br/><br/> <p style="margin:0in 0in 0pt"><span style="font-family:'Courier New';font-size:8pt">  &lt;ItemGroup&gt;</span></p> <p style="margin:0in 0in 0pt"><span style="font-family:'Courier New';font-size:8pt">    &lt;SqlCommandVariableOverride Include=&quot;VersionNo=$(VersionNo)&quot;/&gt;</span></p> <p style="margin:0in 0in 0pt"><span style="font-family:'Courier New';font-size:8pt">  &lt;/ItemGroup&gt;</span><br/><br/>Is there a way to make the property mandatory.  In other word, prevent the deployment if no value is specified for this property.</p>Tue, 17 Nov 2009 20:34:54 Z2009-11-25T03:11:15Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/6d38815d-4cb1-4620-b236-4db90b7a09a2http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/6d38815d-4cb1-4620-b236-4db90b7a09a2dgoyalhttp://social.msdn.microsoft.com/Profile/en-US/?user=dgoyalMSBuild does not detect correct files to compile while building VC++ filesWe are building multiple solutions in TFSProj file (all VS 2008 based VC++ Projects), we also do custom labeling for that. Build starts early morning and today when came to office we realized that we missed a critical checkin, so we checked in those files, re-labeled those files and we stopped the automated build, changed the TFSProj to build with &quot;IncrementalBuild&quot; set to true to save on compilation time. In the end, the build we got was useless. When we investigated we found that only relabeled .cpp files were compiled and .h files which were relabeled althogh were included in number of .cpp files were not compiled. When I opened the Soluton file with Visual Studio 2008 and gave a build (incremental) command from IDE, it now built all those dependent files. <div><br/></div> <div>Now, if this really is an issue, it is big one as this means we will never be able to use incremental configuration with MS Builds. Are we doing something wrong here ?</div>Fri, 20 Nov 2009 12:48:51 Z2009-11-24T16:55:48Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/47e3639a-1e85-4d21-9899-9345f8d42414http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/47e3639a-1e85-4d21-9899-9345f8d42414HobbitYvrhttp://social.msdn.microsoft.com/Profile/en-US/?user=HobbitYvrTFS 2008 Build Error 3021<p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="color:#1f497d" lang=EN-US><span style="font-family:Calibri;font-size:small">  <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="color:#000000"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>My team is trying to resolve changeset issue with auto build in TFS 2008.</span><span style="font-family:'Verdana','sans-serif';font-size:10pt"></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000"> </span></span></p> <p class=MsoNormal style="text-indent:-18pt;margin:0cm 0cm 0pt 42pt"><span style="color:#000000"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>A.)</span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>   </span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>Auto trigger generated two build numbers CBuild50_20091118.48 and CBuild50.20091118.54. Let’s call it 48 and 54, respectively.</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000"> </span></span></p> <p class=MsoNormal style="text-indent:-18pt;margin:0cm 0cm 0pt 42pt"><span style="color:#000000"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>B.)</span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>   </span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>Build 48 has two changesets: (169772 and 169777)</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000"> </span></span></p> <p class=MsoNormal style="text-indent:-18pt;margin:0cm 0cm 0pt 42pt"><span style="color:#000000"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>C.)</span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>   </span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>Build 48 failed with the “file not found” error MS3021 (not with a compile error) associated with the 169777. </span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt 42pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000"> </span></span></p> <p class=MsoNormal style="text-indent:-18pt;margin:0cm 0cm 0pt 42pt"><span style="color:#000000"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>D.)</span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>   </span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>There were few more builds between 48 and 54 which failed with the same error (copy error)</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000"> </span></span></p> <p class=MsoNormal style="text-indent:-18pt;margin:0cm 0cm 0pt 42pt"><span style="color:#000000"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>E.)</span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>    </span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>Build 54 triggered on its own and also contained those two changesets (169772 and 169777) and this build passed.</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><br/></span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000">Questions I have are:</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000"> </span></span></p> <p class=MsoNormal style="text-indent:-18pt;margin:0cm 0cm 0pt 42pt"><span style="color:#000000"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>1.</span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>      </span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>Why did TFS Build start two builds with the same changesets?</span></span></p> <p class=MsoNormal style="text-indent:-18pt;margin:0cm 0cm 0pt 42pt"><span style="color:#000000"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>2.</span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>      </span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>Why did the build .54 start without any check-in?</span></span></p> <p class=MsoNormal style="text-indent:-18pt;margin:0cm 0cm 0pt 42pt"><span style="color:#000000"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>3.</span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>      </span><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US>Any other reason why did build 48 fail and 54 pass? </span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000"> </span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000">We checked the history, there is approximately 10 minute difference between both check-ins (169772 and 169777. Btw, we setup TFS build trigger to execute on each check-in. I guess both changesets should not go into the same build. There were 5 more different checkins on the same branch.</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000"> </span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><span style="color:#000000">Any help/advice is greatly appreciated.</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt" lang=EN-US><br/><span style="color:#000000">Thanks,<br/>Voja</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';font-size:10pt"><span style="color:#000000"> </span></span></p> <span style="color:#1f497d" lang=EN-US><font face=Calibri size=3> <p class=MsoNormal style="margin:0cm 0cm 0pt"> </p> </font></span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"> </p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri"></span></span></span></p>Mon, 23 Nov 2009 20:30:50 Z2009-11-25T04:48:56Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/451e0281-94de-4b44-bfa2-90b40c3d1725http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/451e0281-94de-4b44-bfa2-90b40c3d1725darshan81http://social.msdn.microsoft.com/Profile/en-US/?user=darshan81MSBuild Error - The directory is not emptyHi,<br/>I am using MSBuild to deploy an asp.net website to a remote machine. I have 3 nightly builds that run automatically at 2:00am, 3:00 am and 4:00 am respectively.<br/><br/>Sometimes for either one of the builds, I get the following error - <strong>'The directory is not empty'</strong><br/><br/>Now I saw the build log and looked at what step my build failed. That step is nothing but a custom task called 'DeleteFilesTask'. This task basically deletes files from a network path <strong>[\\pprodweb1\Inetpub\MarketSuite_Test]</strong>. <br/><br/><strong>pprodweb1 - This is the web server<br/>MarketSuite_Test - This is the folder where the website files gets deployed.<br/></strong><br/>So it tries deleting the exisiting files on that path and copies the new ones. And this happens the same for all the 3 nightly builds, just that it fails for one of them. And the failure is sporadic too.<br/><br/>Can anyone help me with this ?<br/><br/><br/>Thanks,<br/>DarshanThu, 01 Oct 2009 17:18:09 Z2009-11-24T08:20:17Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/dd66b2a2-f3f2-4c98-ba20-cb467fe67e2ehttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/dd66b2a2-f3f2-4c98-ba20-cb467fe67e2eIvan 4wardhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ivan%204wardTF53010: Error encountered while trying to use file cache (FileNotFound Exception)<p>Below is the error I keep getting during nighly builds. </p> <p>Anybody have any idea what I need to do,  </p> <p><span style="color:#000000">TF53010: The following error has occurred in a Team Foundation component or extension:<br/>Date (UTC): 10/10/2009 8:34:22 AM<br/>Machine: TFSDEV01<br/>Application Domain: /LM/W3SVC/3/Root/VersionControl-1-1289682733373984<br/>Assembly: Microsoft.TeamFoundation.VersionControl.Server, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727<br/>Process Details:<br/>  Process Name: w3wp<br/>  Process Id: 5023<br/>  Thread Id: 181<br/>  Account name: TFSTEST\tfsuser1</span></p> <p><span style="color:#000000">Detailed Message: Error encountered while trying to use file cache. Attempting to download the file directly from the database.<br/>Web Request Details<br/>    Url: http://tfsdev01:8080/VersionControl/v1.0/item.asmx?type=rsa&amp;sfid=1521,1555,1621,1627&amp;ts=63388165908124121&amp;s=OswzyGBiINJzSMILSygiIlwEhd3MytNoPrffFsVDdySjoI5OjTZcpf6p/4Kn/3VEbQkBsm4Hmwbig4ovmhP6LhqCsZnZy2AgdiT/nqCafrF4jMveyY7KbeXkcd7btrA3erRmMBI43VkH90pwqiOXWF55zIo/oZv8/J/qF1lVeng=&amp;fid=758114 [method: GET]<br/>    User Agent: Team Foundation (devenv.exe, 8.0.50727.762)<br/>    Headers: Accept-Language=en-US&amp;Host=tfsdev01%3a8080&amp;User-Agent=Team+Foundation+(devenv.exe%2c+8.0.50727.762)&amp;X-TFS-Version=1.0.0.0&amp;X-VersionControl-Instance=a8c472f2-b8dd-477a-81b5-4068374aa305<br/>    Path: /VersionControl/v1.0/item.asmx<br/>    Local Request: False<br/>    Host Address: 192.168.1.76<br/>    User: TFSTEST\tfsuser1 [authentication type: NTLM]</span></p> <p><span style="color:#000000">Exception Message: Could not find file 'C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\VersionControl\Data\efd62967-d9b2-4c06-a87b-4d5380b7e468\AC\0E23AB'. (type FileNotFoundException)</span></p> <p><span style="color:#000000">Exception Stack Trace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)<br/>   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)<br/>   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)<br/>   at System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length)<br/>   at System.Web.HttpResponse.TransmitFile(String filename)<br/>   at Microsoft.TeamFoundation.VersionControl.Server.MidTierExistingCacheItem.TransmitFile(HttpResponse response)<br/>   at Microsoft.TeamFoundation.VersionControl.Server.MidTierFileCache.RetrieveFile(DownloadContext context, HttpResponse response)</span></p> <p> </p>Sun, 22 Nov 2009 16:40:05 Z2009-11-24T07:46:34Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/825ae2ab-2030-44c2-8828-3e330739169bhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/825ae2ab-2030-44c2-8828-3e330739169bpradanahttp://social.msdn.microsoft.com/Profile/en-US/?user=pradanaAL.exe not foundHello,<br/> <br/> I'm using Team Build 2008. When running a build, it failed and when I check the log, i found following message:<br/> <br/> Task failed because &quot;AL.exe&quot; was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for &quot;AL.exe&quot; in the &quot;bin&quot; subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A. You may be able to solve the problem by doing one of the following: 1) Install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5. 2) Install Visual Studio 2008. 3) Manually set the above registry key to the correct location. 4) Pass the correct location into the &quot;ToolPath&quot; parameter of the task.<br/> <br/> Then I installed Windows SDK for Windows Server 2008 and .NET Framework 3.5. But, when I tried to run the build again, it failed and return the same message. Why it keeps looking for v6.0A instead of v6.1? Is there any way to 'force' the &quot;AL&quot; task to look into the registry key v6.1?<br/> <br/> Thanks.<br/>Fri, 20 Nov 2009 10:49:40 Z2009-11-24T03:40:55Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/62e776e5-404f-453e-bff3-eb43e6673e61http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/62e776e5-404f-453e-bff3-eb43e6673e61taibo19http://social.msdn.microsoft.com/Profile/en-US/?user=taibo19How to Bypass MSBuild command-line to have the default property number + 1Hi,<br/><br/>In our MSbuild script we have the property called &quot;buildNumber&quot; and is running manual process based on request build we queue up a build and bypass the MSBuild command by /p: build=001 anyone know a parameter we can Bypass the the default buildnumber 001 + 1 so we can add this in the .rsp file and have it schedule to queue up the build without bypass the MSbuild arguments everytime when we reqest a new build number update +1. Wed, 18 Nov 2009 13:56:08 Z2009-11-25T06:09:10Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/d7005a90-38fd-4a64-a027-e9216d7efa16http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/d7005a90-38fd-4a64-a027-e9216d7efa16Jerry4184343http://social.msdn.microsoft.com/Profile/en-US/?user=Jerry4184343MSBuild errorI recently moved my code to another machine and to use VSTeam version instead of professional. When I tried to compile, I started getting the following error.  Any help please? <br/><br/> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-family:'Segoe UI', 'sans-serif';color:#333333"><span style="font-size:small">copy *.*<span>  </span>$(SolutionDir)SpeakOut.Controls\Petition\*.ascx<span>  </span>$(ProjectDir)Common\Controls\Petition\<br/></span></span> <p> Error 3 The command &quot;COPY &quot;C:\Documents and Settings\Administrator\Desktop\WebClient\Controls\Common\*.ascx&quot;  &quot;C:\Documents and Settings\Administrator\Desktop\WebClient\Clients\CommonControls\General\&quot;&quot; exited with code 1. Clients</p> </p> <p class=MsoNormal style="margin:0in 0in 10pt"> </p>Tue, 10 Nov 2009 19:01:40 Z2009-11-23T19:40:33Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/70b86603-f0d1-4972-9b79-e0b52dfb2a15http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/70b86603-f0d1-4972-9b79-e0b52dfb2a15Develop Wellhttp://social.msdn.microsoft.com/Profile/en-US/?user=Develop%20WellGenCheckinNotesUpdateWorkItems "Cannot find the last label"<p>Using: Visual Studio 2008 Team System &amp; Team Foundation Server 2008 Build Service<br/><br/><br/>I am unable to get our Build Server to produce the Associated Changesets and Associated work items, because the  GenCheckinNotesUpdateWorkItems task is not &quot;finding&quot; the previous label.<br/><br/>The big unique thing that I'm doing is the Build Definition is in one TFS Project and the Source Code is in another. Everything builds fine, just the associations aren't working.<br/><br/>I've tried overriding CoreLabel (got worse) and GetChangeSetsAndUpdateWorkItems (same result as no mod).<br/><br/>When I look for the label with either TF LABELS or through Visual Studio, I can see the Label. Also, I see the build making the label.<br/></p> <pre>Target &quot;CoreLabel&quot; in file &quot;M:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets&quot; from project &quot;N:\GMS Build\DEV\26\BuildType\TFSBuild.proj&quot;: Using &quot;Label&quot; task from assembly &quot;N:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.Tasks.VersionControl.dll&quot;. Task &quot;Label&quot; Label TeamFoundationServerUrl=&quot;http://myserver:8080/&quot; BuildUri=&quot;vstfs:///Build/Build/3815&quot; Name=&quot;My Build Definition_20091117.74&quot; Scope=&quot;$/My Build&quot; Recursive=True Comments=&quot;Label created by Team Build&quot; Version=&quot;WMYBUILDSERVER_26&quot; Child=&quot;Replace&quot; Files=&quot;$/&quot; Label My Build Definition_20091117.74@$/My Build (version WMYBUILDSERVER_26) was successfully created. Done executing task &quot;Label&quot;. </pre> <p><br/><br/>This is followed by the Cannot find the last label message below.<br/></p> <pre>Target &quot;GetChangeSetsAndUpdateWorkItems&quot; in file &quot;N:\My Build\DEV\26\BuildType\TFSBuild.proj&quot; from project &quot;N:\My Build\DEV\26\BuildType\TFSBuild.proj&quot;: Using &quot;GenCheckinNotesUpdateWorkItems&quot; task from assembly &quot;N:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.Tasks.VersionControl.dll&quot;. Task &quot;GenCheckinNotesUpdateWorkItems&quot; GenCheckinNotesUpdateWorkItems TeamFoundationServerUrl=&quot;http://myserver:8080/&quot; BuildUri=&quot;vstfs:///Build/Build/3814&quot; CurrentLabel=&quot;My Build Definition_20091117.73@$/My Build&quot; LastLabel=&quot;My Build Definition_20091117.72@$/My Build&quot; UpdateWorkItems=True BuildNumber=&quot;My Build Definition_20091117.73&quot; BuildUri=&quot;vstfs:///Build/Build/3814&quot; Warning: Cannot find the last label 'My Build Definition_20091117.72@$/GMS Dev Build': no changesets will be associated with the build. Done executing task &quot;GenCheckinNotesUpdateWorkItems&quot;.</pre> <p> </p>Wed, 18 Nov 2009 04:04:52 Z2009-11-23T05:28:04Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/dc108a9e-b3cf-4df9-95fb-6b6e9f58c905http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/dc108a9e-b3cf-4df9-95fb-6b6e9f58c905pradanahttp://social.msdn.microsoft.com/Profile/en-US/?user=pradanaTeam Build with SubversionHi All,<br/> <br/> Our company would move from using TFS to Subversion as source control. Is it possible for Team Build to pull the source code from Subversion?<br/> <br/> Thanks.Fri, 20 Nov 2009 06:06:46 Z2009-11-24T02:41:57Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/f59a17f3-0e31-4f75-aa93-6d6ed4cf6a3ahttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/f59a17f3-0e31-4f75-aa93-6d6ed4cf6a3aschwennhttp://social.msdn.microsoft.com/Profile/en-US/?user=schwennQuotes not enough to protect blanks in macros sometimesI'm finding that quotes that are adequate to protect blanks in a macro in Local IDE build, aren't always (e.g. Post Build Event command line) enough to protect them under Team Build.  For example, the command line:<br/> <br/> cmd /c &quot;$(SolutionDir)\TBPhaseIIpts\hftgwin.bat&quot; <br/> <br/> fails (stops macro interpretation at an included blank) under Team Build.  One example: when $(SolutionDir) includes &quot;...\Hull Form Transformation....&quot;.  The failure looks like middle line of:<br/> <br/>   ...<br/>   Embedding manifest...<br/>   Runs the Gtest Release unit tests<br/>   'c:\teamprojects\atc\HullTransformationDEV\DEV\Hull' is not recognized as an internal or external command,<br/>   operable program or batch file.<br/> Project : error PRJ0019: A tool returned an error code from &quot;Runs the Gtest Release unit tests&quot;<br/>   ....<br/> <br/> where &quot;Runs the Gtest Release unit tests&quot; signals the imminent use of the quote protected command-line in question.<br/> <br/> Why would it make any difference if a macro is interpreted under Local VS build or Team Build?  (The exact same blank hanging up Team Build here works fine under Local VS build)<br/> <br/> ?<br/> <br/> Peter Schwenn<hr class="sig">schwennFri, 13 Nov 2009 20:00:34 Z2009-11-20T08:39:16Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/3dbd1b1c-585b-427d-9ea1-321f3b4cdf3fhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/3dbd1b1c-585b-427d-9ea1-321f3b4cdf3fJXDhttp://social.msdn.microsoft.com/Profile/en-US/?user=JXDproject is not rebuilt when head file has been changed in incremental build<p>In Visual Studio 2008, I set a team build as an incremental build by setting IncrementalBuild to be true in TFSBuild.proj like this:<br/><br/><span class=kwrd><span style="color:#0000ff">&lt;</span></span><span class=html><span style="color:#800000">PropertyGroup</span></span><span style="color:#0000ff"><span class=kwrd>&gt;</span><br/></span>      <span class=kwrd><span style="color:#0000ff">&lt;</span></span><span class=html><span style="color:#800000">IncrementalBuild</span></span><span class=kwrd><span style="color:#0000ff">&gt;</span></span>true<span class=kwrd><span style="color:#0000ff">&lt;/</span></span><span class=html><span style="color:#800000">IncrementalBuild</span></span><span style="color:#0000ff"><span class=kwrd>&gt;</span><br/></span>   <span class=kwrd><span style="color:#0000ff">&lt;/</span></span><span class=html><span style="color:#800000">PropertyGroup</span></span><span class=kwrd><span style="color:#0000ff">&gt;</span></span><br/><br/>but when a head file has been modified, the build doesn't recognize the necessity to <strong>Rebuild</strong> the project, i.e., to delete the intermediate files, like the pre-compiled head files (.pch), so the build fails. Does anyone know why an incremental build fails to do a Rebuild when header file has been changed? Or does incremental build never does a Rebuild by design?<br/><br/>Thanks in advance.</p>Wed, 22 Apr 2009 16:59:01 Z2009-11-19T23:25:20Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/4cc19fd4-293b-4d5d-b3c1-1f59a8c820f6http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/4cc19fd4-293b-4d5d-b3c1-1f59a8c820f6Karim Nogashttp://social.msdn.microsoft.com/Profile/en-US/?user=Karim%20NogasIncremental Build Out of SynchHi,<br/> <br/> I'm running into the exact same problem as described about a year ago here:<br/> <a href="http://social.msdn.microsoft.com/forums/en-US/tfsbuild/thread/158fa02f-dd4f-42e5-8298-422ce77cdfd3">http://social.msdn.microsoft.com/forums/en-US/tfsbuild/thread/158fa02f-dd4f-42e5-8298-422ce77cdfd3</a> <br/> <br/> Although the question was marked as answered, it seems the only answer is to have Mr. Hallberg look at the .proj file? :)<br/> <br/> What exactly is the problem with the TFSBuild.proj file that fails to detect a change to a header file? <br/> <br/> I'm running into this so frequently and as a result have resorted to turning off incremental builds.  Not ideal, but safer since I can't trust that TFS will rebuild what is required.Thu, 19 Nov 2009 21:41:12 Z2009-11-24T02:39:28Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/9d7994dd-f72a-4a38-b1dd-85bc415934e7http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/9d7994dd-f72a-4a38-b1dd-85bc415934e7Richard Winkshttp://social.msdn.microsoft.com/Profile/en-US/?user=Richard%20WinksHow can I use TFSBuild/MSBuild to modify vcproj AssemblyReferenceSearchPathsWe have a build of a solution that has a VC++ project that references managed assemblies.<br>When the developer checks in the VC++ solution, the project contains references to assemblies relative to his workspace.  TFS Build's workspace isn't laid out the same way.  In fact the path is relative through the ..\<em>projectname</em>\bin\<em>configurationname</em> path.<br><br>I would like reference paths to be directed to the $(OutDir) path as that is where all build files end up.  I can get the managed code to build in the correct order and the assembly dependencies are in the $(OutDir) path when it comes time to build the VC++ managed components.<br><br>The problem presents itself as a build failure with the following error message:<br>(<em>VCDependentModule</em> target) -&gt;<br>  .\stdafx.cpp : fatal error C1192: #using failed on 'e:\<em>pathtoassemblyproject</em>\bin\debug\<em>someassembly</em>.dll'<br><br>The vcproj file contains referencepaths that are not valid for the TFS build.<br><br>I have already tried modifying AdditionalVCOverrides to inject &quot;AdditionalUsingDirectories<em>=OutDir path&quot;</em>  into the VCCLCompilerTool.  This did not work.<br><br>The solution, I believe, is to inject  AssemblyReferenceSearchPaths= <em>OutDir path</em> into the vcproj &lt;VisualStudioProject&gt; element.   I have found that manually editing the vcproj file and adding the AssemblyReferenceSearchPaths with the absolute path to OutDir (not the property $(OutDir)) resolves the reference problem.<br><br>The only problem is that I can't figure out how to insert the AssemblyReferenceSearch attribute.<br><br>Here is what I have:<br> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px"></font><font style="color:blue">&lt;?</font><font style="font-size:11px">xml </font><font style="color:red">version</font><font style="font-size:11px">=</font><font style="color:blue">&quot;1.0&quot;</font><font style="font-size:11px"> </font><font style="color:red">encoding</font><font style="font-size:11px">=</font><font style="color:blue">&quot;Windows-1252&quot;</font><font style="font-size:11px">?&gt;  </font></td></tr> <tr> <td style="background-color:#f7f7f7"></font><font style="color:blue">&lt;</font><font style="font-size:11px">VisualStudioProject  </font></td></tr> <tr> <td>    </font><font style="color:red">ProjectType</font><font style="font-size:11px">=</font><font style="color:blue">&quot;Visual C++&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">Version</font><font style="font-size:11px">=</font><font style="color:blue">&quot;9.00&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:red">Name</font><font style="font-size:11px">=</font><font style="color:blue">&quot;CorvusImageBridge&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">ProjectGUID</font><font style="font-size:11px">=</font><font style="color:blue">&quot;{B1A6925E-6EEB-4601-A6F7-061634A3A7A7}&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:red">RootNamespace</font><font style="font-size:11px">=</font><font style="color:blue">&quot;CorvusImageBridge&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">SccProjectName</font><font style="font-size:11px">=</font><font style="color:blue">&quot;SAK&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:red">SccAuxPath</font><font style="font-size:11px">=</font><font style="color:blue">&quot;SAK&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">SccLocalPath</font><font style="font-size:11px">=</font><font style="color:blue">&quot;SAK&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:red">SccProvider</font><font style="font-size:11px">=</font><font style="color:blue">&quot;SAK&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">Keyword</font><font style="font-size:11px">=</font><font style="color:blue">&quot;MFCDLLProj&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:red">AssemblyReferenceSearchPaths</font><font style="font-size:11px">=</font><font style="color:blue">&quot;&amp;quot;<font style="background-color:#ffff00">DevelopersRelativePath\SomeAssembly\Bin\Release</font>&amp;quot;&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">TargetFrameworkVersion</font><font style="font-size:11px">=</font><font style="color:blue">&quot;131072&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:blue">&gt;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7"> </td></tr></tbody></table></div><br><br>Here is what I would like to have:<br> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px"></font><font style="color:blue">&lt;?</font><font style="font-size:11px">xml </font><font style="color:red">version</font><font style="font-size:11px">=</font><font style="color:blue">&quot;1.0&quot;</font><font style="font-size:11px"> </font><font style="color:red">encoding</font><font style="font-size:11px">=</font><font style="color:blue">&quot;Windows-1252&quot;</font><font style="font-size:11px">?&gt;  </font></td></tr> <tr> <td style="background-color:#f7f7f7"></font><font style="color:blue">&lt;</font><font style="font-size:11px">VisualStudioProject  </font></td></tr> <tr> <td>    </font><font style="color:red">ProjectType</font><font style="font-size:11px">=</font><font style="color:blue">&quot;Visual C++&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">Version</font><font style="font-size:11px">=</font><font style="color:blue">&quot;9.00&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:red">Name</font><font style="font-size:11px">=</font><font style="color:blue">&quot;CorvusImageBridge&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">ProjectGUID</font><font style="font-size:11px">=</font><font style="color:blue">&quot;{B1A6925E-6EEB-4601-A6F7-061634A3A7A7}&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:red">RootNamespace</font><font style="font-size:11px">=</font><font style="color:blue">&quot;CorvusImageBridge&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">SccProjectName</font><font style="font-size:11px">=</font><font style="color:blue">&quot;SAK&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:red">SccAuxPath</font><font style="font-size:11px">=</font><font style="color:blue">&quot;SAK&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">SccLocalPath</font><font style="font-size:11px">=</font><font style="color:blue">&quot;SAK&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:red">SccProvider</font><font style="font-size:11px">=</font><font style="color:blue">&quot;SAK&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">Keyword</font><font style="font-size:11px">=</font><font style="color:blue">&quot;MFCDLLProj&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:red">AssemblyReferenceSearchPaths</font><font style="font-size:11px">=</font><font style="color:blue">&quot;&amp;quot;<font style="background-color:#ffff00">PathToTFSBuildProject\..\Binaries\Release&amp;quot</font>;&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:red">TargetFrameworkVersion</font><font style="font-size:11px">=</font><font style="color:blue">&quot;131072&quot;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>    </font><font style="color:blue">&gt;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7"> </td></tr></tbody></table></div><br>If there is a better way to resolve this reference issue please let me know!  AdditionReferencePaths doesn't work with VC++ projects.<br><br>I'm using Visual Studio Team System 2008.<br><br>I am really looking forward to VS2010 if it will resolve the difficulties with handling mixed (VC++, C#) builds and get rid of vcbuild project files in favor of msbuild compatible project files.  This is long overdue.<br><br>RichardFri, 27 Mar 2009 14:27:10 Z2009-11-19T20:18:38Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/1b8e7e9f-e0f2-4d26-b089-e82444252eafhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/1b8e7e9f-e0f2-4d26-b089-e82444252eafAlfie Johnsonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alfie%20JohnsonBuild service won't startHi. I'm trying to get TFS set up, but am having a problem with the build service.  The service won't start, and when I try and start it manually I get the error: &quot;Could not start the Visual Studio Team Foundation Build service on Local Computer. Error 1227: The network transport endpoint already has an address associated with it.&quot;<br> <br> Looking at the event viewer there's an error that looks like this:<br> TF53010: The following error has occurred in a Team Foundation component or extension:<br> Date (UTC): 10/21/2008 5:58:21 PM<br> Machine: TEAMDEV<br> Application Domain: TFSBuildService.exe<br> Assembly: TfsBuildService, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727<br> Process Details:<br>   Process Name: TFSBuildService<br>   Process Id: 4476<br>   Thread Id: 3388<br>   Account name: NT AUTHORITY\NETWORK SERVICE<br> <br> Detailed Message: TF224000: The Visual Studio Team Foundation Build service failed to start because another application is already using the address http://teamdev:9191/Build/v2.0/AgentService.asmx.<br> Exception Message: HTTP could not register URL http://+:9191/Build/v2.0/AgentService.asmx/. Another application has already registered this URL with HTTP.SYS. (type AddressAlreadyInUseException)<br> <br> So it looks like some other process has grabbed that guy, but who?  This post is similar:<br> <a href="http://social.msdn.microsoft.com/Forums/en-US/tfsadmin/thread/95f1c7c1-e654-4e35-898a-89f8fe943348/">http://social.msdn.microsoft.com/Forums/en-US/tfsadmin/thread/95f1c7c1-e654-4e35-898a-89f8fe943348/</a><br> <br> and the answer points to:<br> <a href="http:///">http://msdn.microsoft.com/en-us/library/bb399142.aspx</a><br> <br> But the MSDN article doesn't seem to help because the service isn't running and can't be stopped in step 4 and won't start at step 12.<br> <br> We have been setting up the server to use https, and everything else seems to be working OK except the build part.  I've tested changing the service's username/password, tried wcfhttpconfig options, tried uninstalling/reinstalling the build service, tried tweaking the tfsbuildservice.exe.config file in all sorts of different ways, but nothing helps.  What should I look at now?<br> <br> Thanks for any help,<br> Alfie Tue, 21 Oct 2008 18:31:18 Z2009-11-19T11:58:52Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/4fd65b17-29f6-4a13-b3f0-169148773db4http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/4fd65b17-29f6-4a13-b3f0-169148773db4Steve Desmethttp://social.msdn.microsoft.com/Profile/en-US/?user=Steve%20DesmetTeam Build running Powershell script with parametersHi,<br/> <br/> I'm trying to run a Powershell script during a Team Build. Here's my TFSBuild.proj (left out some entries for brevity):<br/> <br/> <pre lang=x-xml>&lt;PropertyGroup&gt; &lt;Script&gt;C:\Program Files\Microsoft DocTools\Document Converter\ConvertToChmFromMasterTOC.ps1&lt;/Script&gt; &lt;Arg1&gt;$(SolutionRoot)\Src\MasterTOC.xml&lt;/Arg1&gt; &lt;Arg2&gt;$(SolutionRoot)\Doc&lt;/Arg2&gt; &lt;Arg3&gt;C:\Program Files\Microsoft DocTools\Document Converter\Formatting\MSDN2\xsl&lt;/Arg3&gt; &lt;Arg4&gt;$(SolutionRoot)\Src\convertConfig.xml&lt;/Arg4&gt; &lt;Arg5&gt;$(SolutionRoot)\Src\packageConfig.xml&lt;/Arg5&gt; &lt;CommandTxt&gt;%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -command &amp;quot;%26 &amp;apos;$(Script)&amp;apos; &amp;apos;$(Arg1)&amp;apos; &amp;apos;$(Arg2)&amp;apos; &amp;apos;$(Arg3)&amp;apos; &amp;apos;$(Arg4)&amp;apos; &amp;apos;$(Arg5)&amp;apos; &amp;quot;&lt;/CommandTxt&gt; &lt;/PropertyGroup&gt; &lt;Target Name=&quot;AfterGet&quot;&gt; &lt;Exec Command=&quot;%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe set-executionPolicy remotesigned&quot;/&gt; &lt;Exec Command=&quot;$(CommandTxt)&quot;/&gt; &lt;/Target&gt;</pre> <br/> <br/> This results in a build error:<br/> <br/> Command:<br/>   %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -command &quot;&amp; 'C:\Program Files\Microsoft DocTools\Document Converter\ConvertToChmFromMasterTOC.ps1' 'E:\Bld\Shared\Build_TFS_Guidance\BuildType\..\Sources\Src\MasterTOC.xml' 'E:\Bld\Shared\Build_TFS_Guidance\BuildType\..\Sources\Doc' 'C:\Program Files\Microsoft DocTools\Document Converter\Formatting\MSDN2\xsl' 'E:\Bld\Shared\Build_TFS_Guidance\BuildType\..\Sources\Src\convertConfig.xml' 'E:\Bld\Shared\Build_TFS_Guidance\BuildType\..\Sources\Src\packageConfig.xml' &quot;<br/> EXEC : An error Ocurred: Cannot bind argument to parameter 'Path' because it is null.<br/> <br/> However, when I run this exact same command (%SystemRoot%\system32... and so on) from the command line on the build server, logged in as the Build Service account, it runs the powershell script without any problems.<br/> <br/> Does anyone have an idea why it's not acting the same when running this from Team Build?<br/> <br/> Sorry, but I'm a PowerShell novice and I've been really struggling to get this working.<br/> <br/> Thanks for your help,<br/> <br/> Steve.<br/> <br/>Thu, 19 Nov 2009 10:28:21 Z2009-11-19T10:28:22Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/21e47b25-8ceb-48f8-a214-02e08b84d9edhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/21e47b25-8ceb-48f8-a214-02e08b84d9edjmndealhttp://social.msdn.microsoft.com/Profile/en-US/?user=jmndealRetrieve the cause of a build failureI'd like to be able to email the cause of a build failure to team members.  Is there a way to retrieve the cause of failure when it happens?Thu, 12 Nov 2009 18:29:36 Z2009-11-19T07:40:39Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/05348aeb-96ae-4376-9c82-758d51c3431dhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/05348aeb-96ae-4376-9c82-758d51c3431dIsorfirhttp://social.msdn.microsoft.com/Profile/en-US/?user=IsorfirTeam Build publishing ClickonceI'm trying to publish my project using Clickonce and Team Build, but I'm getting the following error:<br/><br/> <p>TFSBuild.proj(19,5): error MSB3202: The project file &quot;$/Prod/TeamBuildTypes/SystemTest/../../SystemTest/SystemTest.sln&quot; was not found.<br/><br/>Any ideas about why this is happening?<br/><br/>Here's what I added to the TFSBuild.proj:<br/><br/><span style="color:#0000ff"><span style="color:#0000ff"></span></span></p> <div style="background-color:white;color:black"> <pre> <span style="color:blue">&lt;</span><span style="color:#a31515">Target</span> <span style="color:red">Name</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">AfterCompile</span><span style="color:black">&quot;</span><span style="color:blue">&gt;</span> &lt;MSBuild Condition=&quot; '@(SolutionToBuild)'!='' &quot; Projects=&quot;@(SolutionToBuild)&quot; Properties=&quot;Configuration=%(ConfigurationToBuild.FlavorToBuild); Platform=%(ConfigurationToBuild.PlatformToBuild); SkipInvalidConfigurations=true; VCBuildOverride=$(MSBuildProjectDirectory)\TFSBuild.vsprops; FxCopDir=$(FxCopDir);OutDir=$(OutDir); PublishDir=$(OutDir); ReferencePath=$(ReferencePath); TeamBuildConstants=$(TeamBuildConstants); $(CodeAnalysisOption);PublishDir=\\tfsserver\Builds\Publish\ &quot; Targets=&quot;Publish&quot; /&gt; <span style="color:blue">&lt;/</span><span style="color:#a31515">Target</span><span style="color:blue">&gt;</span> </pre> </div>Mon, 16 Nov 2009 20:06:07 Z2009-11-18T19:10:11Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/b02fa5ff-9138-4337-8b3e-54f24bb17fd2http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/b02fa5ff-9138-4337-8b3e-54f24bb17fd2Kim Carlsenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Kim%20Carlsenversion number in pre-built eventHi<br/>I'm trying something that should be easy, but it fails:-)<br/>In buildnumberoverride target I set the versionnumber and I can use it in my tfsproj file as $(versionnumber)<br/><span style="font-size:x-small">but I would like to use that in a pre-build event in one of my projects as:<br/>set versionNumber=$(VersionNumber)<br/>But I can se in the buildlog that it just returns:<br/>set versionNumber=<br/><br/>Whats wrong?<br/><br/>regards<br/>Kim</span>Tue, 17 Nov 2009 10:11:49 Z2009-11-18T13:24:35Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/855643ff-6bde-4f3a-b77e-a2282bf1230dhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/855643ff-6bde-4f3a-b77e-a2282bf1230dA n thttp://social.msdn.microsoft.com/Profile/en-US/?user=A%20n%20tTests run 0 passed 0 failedHi,<br/><br/>I'm running tests in a Team build via a test list. <br/>when the test finishes, the build partially passes with 557 tests total, 0, passed, 0 failed.<br/><br/>Why do I get 0 passed/failed if the tests were run? I've made sure the tests are checked in the test list. The tests do seem to be running as it indicates the number of tests in the build results.<br/><br/>does anybody know how to get pass/fails out of the test runs?<br/><br/>Thanks kindly for your answers<hr class="sig">@ntTue, 17 Nov 2009 01:36:41 Z2009-11-18T03:37:31Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/248abfcb-b7d4-40de-879a-57e96dc838d9http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/248abfcb-b7d4-40de-879a-57e96dc838d9JXDhttp://social.msdn.microsoft.com/Profile/en-US/?user=JXDhow to specify a build condition on a solution based on the build status of another solution in the same buildHello,<br/><br/>I build two solutions in my build, like this in the TFSBuild.proj file, <br/><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><br/>&lt;</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">ItemGroup</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/></span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">   &lt;<span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">SolutionToBuild</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"> </span></span><span style="color:#ff0000;font-size:x-small"><span style="color:#ff0000;font-size:x-small">Include</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">=</span></span><span style="font-size:x-small">&quot;1</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">.sln</span></span><span style="font-size:x-small">&quot;</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"> </span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/>        &lt;</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">Targets</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;&lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">Targets</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/>        &lt;</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">Properties</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;&lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">Properties&gt;<br/></span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">  &lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">SolutionToBuild</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/></span></span>  &lt;</span></span></span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">SolutionToBuild</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"> </span></span><span style="color:#ff0000;font-size:x-small"><span style="color:#ff0000;font-size:x-small">Include</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">=</span></span><span style="font-size:x-small">&quot;</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">2.sln</span></span><span style="font-size:x-small">&quot;</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"> </span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/>        &lt;</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">Targets</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;&lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">Targets</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/>        &lt;</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">Properties</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;&lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">Properties</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/>    &lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">SolutionToBuild</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/></span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">ItemGroup</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/></span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><br/>&lt;</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">ItemGroup</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">    &lt;</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">ConfigurationToBuild</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"> </span></span><span style="color:#ff0000;font-size:x-small"><span style="color:#ff0000;font-size:x-small">Include</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">=</span></span><span style="color:#000000;font-size:x-small">&quot;</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">Debug|Win32</span></span><span style="color:#000000;font-size:x-small">&quot;</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/>        &lt;</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">FlavorToBuild</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;</span></span><span style="color:#000000;font-size:x-small">Debug</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">FlavorToBuild</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/>        &lt;</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">PlatformToBuild</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;</span></span><span style="color:#000000;font-size:x-small">Win32</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">PlatformToBuild</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/>    &lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">ConfigurationToBuild</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;<br/></span></span></span></span>&lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">ItemGroup</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;</span></span></span></span></span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><br/></span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">   </span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><br/><br/>but I don't want the 2nd build start if the 1st build fails. Is there a way to specify a condition on the 2nd build and the condition is about the 1st build's status.<br/>Thanks<br/></span></span>Fri, 13 Nov 2009 16:18:39 Z2009-11-17T19:00:39Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/cca38494-f130-40f6-8700-d786345fe38dhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/cca38494-f130-40f6-8700-d786345fe38din_deep_waters_alwayshttp://social.msdn.microsoft.com/Profile/en-US/?user=in_deep_waters_alwaysregarding msiexec.exerespected sirs i recently deleted msiexec.exe from<br/> <br/>                 c:/windows/system32            folder very foolishly now i am not able to install office 2007 and other programs dependent programs pls help me out  as soon as possible<br/> <br/> do provide me with links to genuine sites for msiexec.exe download if possib<br/> <br/> <br/> thanking everybody in advanceMon, 16 Nov 2009 09:05:51 Z2009-11-20T09:42:42Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/a81f53ca-116c-4100-b846-cd904b4dad12http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/a81f53ca-116c-4100-b846-cd904b4dad12rtandrahttp://social.msdn.microsoft.com/Profile/en-US/?user=rtandraRemoveDir Locking the Folder with UNC Path<p>I am using Team Build to deploy our Dev Environment, We were doing fine with websites and Web Application projects.   But I am having issues when I am deploying Windows Services or SSIS packages.    When I am deploying, I am making sure through MSBuild script that the Windows services are stopped.  But still when I use &quot;RemoveDir&quot; to delete the service directory, it is some times locking up the folder and I get &quot;Access denied&quot; message.   That time, I have to restart the system to get rid of the folder.   This is happenning more if the service is heavily used by many users (although I choose a time when service is less utilized or not utilized).  I am sure the service is stopped and I tried uninstalling the service also before removing the folder.  But still I can't do reliable deployment out of the team build.   <br/><br/>I have written separate MSBuild scripts to execute the same script to run on the target server directly instead of a team build deploys properly the files.  Not sure what I am doing wrong.   Anybody got any similar errors?<br/><br/>The error log displays this :<br/>Task &quot;RemoveDir&quot;<br/>  Removing directory &quot;\\DevServer\Services\TickerService\bin&quot;.<br/>  Command:<br/>  rd /s /q &quot;\\DevServer\Services\TickerService\bin&quot;<br/>d:\bld\TestProj\DEV-TickerService\BuildType\TFSBuild.proj(397,5): error MSB3231: Unable to remove directory &quot;\\DevServer\Services\TickerService\bin&quot;. Access to the path '\\DevServer\Services\TickerService\bin' is denied.<br/>Done executing task &quot;RemoveDir&quot; -- FAILED.</p>Tue, 27 Oct 2009 14:24:58 Z2009-11-23T19:36:55Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/956a9390-9dcd-4306-a92f-a952b59da011http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/956a9390-9dcd-4306-a92f-a952b59da011Gabriel Lozano-Moranhttp://social.msdn.microsoft.com/Profile/en-US/?user=Gabriel%20Lozano-MoranTrigger a build when another build was successfull<p align=left><font face=Arial size=2>Hello</font></p> <p align=left> </p> <p align=left>I was hoping to get some help on the following scenario. We have 2 build definitions. The first one is triggered each time one of the developer checks in code. Together with this build we run unit tests and code coverage. If the build is successfull and 100% of the tests pass and the code coverage is higher than 90% we say that this is a successful build.</p> <p align=left> </p> <p align=left>We have a 2nd build that should run at most once every hour but only if there was a successful first build.</p> <p align=left> </p> <p align=left>We have already configured the first build definition so my question is how can I create the trigger for the 2nd build? And I have to make sure that I don't get the latest version but instead retrieve the source code based on the label set by the 1st build that was successfull. So assume that last successful 1st was labeled Core.CB_2008122.1 I need to retrieve this code to run the 2nd build. </p> <p align=left> </p> <p align=left>I understand that I can create a custom task to get the code based on a label but what I am more worried about is how to create the trigger for the 2nd build. I could probably check if the label for the last successful build of the 1st build was in the last hour or not. Does this sound logical?</p>Wed, 23 Jan 2008 11:12:19 Z2009-11-17T02:02:01Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/4a2b4986-7ccd-428e-baa3-33e6e46df7f5http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/4a2b4986-7ccd-428e-baa3-33e6e46df7f5Ngcchttp://social.msdn.microsoft.com/Profile/en-US/?user=NgccTeam buildHello, <br/><br/>I just want to know the condition of creating team building. I have Visual studio 2005 professional and TFS server and client version, does this satisfy the team building and continuous integration? because I found the the baseline is visual studio team system version, but as i know the, the TFS ans VS profession is enough, is it right? Does someone tell me the condition for this?<br/><br/>Thanks in advance,Fri, 13 Nov 2009 05:15:30 Z2009-11-17T01:09:28Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/fc7a0585-6b64-4f02-82c1-9e855daf883chttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/fc7a0585-6b64-4f02-82c1-9e855daf883cMartinRHhttp://social.msdn.microsoft.com/Profile/en-US/?user=MartinRHIncremental get with VC++ 2005 project doesn't work - error VCBLD0010Hi<br/><br/>I have a solution with three VC++ 2005 projects, and have made a buildtype to build these solutions. we have Team Foundation 2008, and I used VS2008 to create the  BuildType. I use the property below <br/> <div style="color:black;background-color:white"> <pre><span style="color:blue">&lt;</span><span style="color:#a31515">Properties</span><span style="color:blue">&gt;</span>vcbuildtoolpath=$(ProgramFiles)\Microsoft Visual Studio 8\vc\vcpackages<span style="color:blue">&lt;/</span><span style="color:#a31515">Properties</span><span style="color:blue">&gt;</span> </pre> </div> <br/>for the whole solution in the &lt;SolutionToBuild&gt;. This can also be found in Aaron Hallbergs blog here: <a href="http://blogs.msdn.com/aaronhallberg/archive/2007/10/30/building-vc-2005-projects-with-team-build-2008.aspx">http://blogs.msdn.com/aaronhallberg/archive/2007/10/30/building-vc-2005-projects-with-team-build-2008.aspx</a>.<br/><br/>This works great! But, adding this little code for incremental get below, makes the building to fail with error code VCBLD0010 (Project '&lt;filepath&gt;firstprojecttobuild.vcproj' requires upgrade. Use 'vcbuild /upgrade' or 'devenv /upgrade' to upgrade the project.) <br/><br/><br/> <div style="color:black;background-color:white"> <pre><span style="color:blue">&lt;</span><span style="color:#a31515">PropertyGroup</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">IncrementalGet</span><span style="color:blue">&gt;</span>True<span style="color:blue">&lt;/</span><span style="color:#a31515">IncrementalGet</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">PropertyGroup</span><span style="color:blue">&gt;</span> </pre> </div> <span style="font-size:x-small"> <p><br/>Anyone knows what to do?<br/><br/>Thanks in advance,<br/>Martin</p> </span>Mon, 16 Nov 2009 09:51:26 Z2009-11-17T10:12:10Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/fbb9ee9d-24c8-4161-8b69-e44a0131046ehttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/fbb9ee9d-24c8-4161-8b69-e44a0131046eMartinRHhttp://social.msdn.microsoft.com/Profile/en-US/?user=MartinRHLet other test framework control the testing status when buildingHi<br/> <br/> For our c++ code we use CppUnit to create unit-tests. I would like to run an CppUnit test after compiling my dlls and let the results from the testing affect the test status of the build. Is this possible in some way?<br/> <br/> Today I use exec command to execute the tests, but then I only get &quot;partial success&quot; when a test failes, and have to look in the log file for errors. <br/> <br/> Thanks in advance:)<br/> -MartinFri, 13 Nov 2009 17:39:52 Z2009-11-19T08:21:30Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/41a3f283-f3fa-4929-b7c4-1655d6d2358fhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/41a3f283-f3fa-4929-b7c4-1655d6d2358fMartinRHhttp://social.msdn.microsoft.com/Profile/en-US/?user=MartinRHAccess to the path is deniedHi<br/><br/>I've googled and searched around but can't find out whats wrong. My log says:<br/> <pre>Using &quot;Delete&quot; task from assembly &quot;Microsoft.Build.Tasks.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;. Task &quot;Delete&quot; Deleting file &quot;d:\teambuild\tender4\compname\appv2\Sources\appname\appver\Frozen\Bin\app.dll&quot;. Command: del &quot;d:\teambuild\tender4\compname\appv2\Sources\appname\appver\Frozen\Bin\app.dll&quot; d:\teambuild\tender4\compname\appv2\BuildType\TFSBuild.proj(277,4): error MSB3061: Unable to delete file &quot;d:\teambuild\tender4\compname\appv2\Sources\appname\appver\Frozen\Bin\app.dll&quot;. Access to the path 'd:\teambuild\tender4\compname\appv2\Sources\appname\appver\Frozen\Bin\app.dll' is denied. Done executing task &quot;Delete&quot; -- FAILED.</pre> I have gived the build user account access to d:\teambuild and all subfolders. <br/>I've tried the solution gived here: <a href="http://blogs.msdn.com/aaronhallberg/archive/2007/10/22/error-msb3021-and-team-build.aspx">http://blogs.msdn.com/aaronhallberg/archive/2007/10/22/error-msb3021-and-team-build.aspx</a> with no success<br/><br/><br/>It all worked find BEFORE I implemented an incremental get, which can be found here: <a href="http://blogs.msdn.com/aaronhallberg/archive/2007/01/03/doing-an-incremental-get-in-team-build.aspx">http://blogs.msdn.com/aaronhallberg/archive/2007/01/03/doing-an-incremental-get-in-team-build.aspx</a><br/>I removed the incremental GET and tried again (hoping the incremental code did cause the error), but no, still error. <br/><br/>The dll to delete is not readonly (I've checked on the filesystem).<br/><br/>I deleted the file manually on the filesystem, and started a new build, still failing. I also restartet the team build service.<br/><br/>The code I'm using is this:<br/> <pre lang=x-aspx>&lt;Target Name=&quot;AfterCompile&quot;&gt; &lt;Message Text=&quot;Copy binaries to bin folder&quot;/&gt; &lt;Copy SourceFiles=&quot;$(OutDir)app.dll&quot; DestinationFolder=&quot;$(SolutionRoot)\appname\appver\Frozen\Bin\&quot;/&gt; &lt;Copy SourceFiles=&quot;$(OutDir)testapp.dll&quot; DestinationFolder=&quot;$(SolutionRoot)\appname\appver\Frozen\Bin\&quot;/&gt; &lt;Message Text=&quot;run manual test&quot;/&gt; &lt;Exec Command=&quot;PluginRunner.exe -t -a odbc testapp.dll&quot; IgnoreExitCode=&quot;false&quot; WorkingDirectory=&quot;$(SolutionRoot)\compname\appver\Frozen\Bin\&quot;&gt;&lt;/Exec&gt; &lt;Message Text=&quot;Delete copied binary files after test&quot;/&gt; &lt;Delete Files=&quot;$(SolutionRoot)\appname\appver\Frozen\Bin\app.dll&quot;/&gt; &lt;Delete Files=&quot;$(SolutionRoot)\appname\appver\Frozen\Bin\testapp.dll&quot;/&gt; &lt;/Target&gt;</pre> Anyone have any ideas? Remember it did work several times before adding the incremental get code.Fri, 13 Nov 2009 14:13:03 Z2009-11-16T08:43:59Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/61ba0ec5-73ff-4eee-912c-7f6908f5aab6http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/61ba0ec5-73ff-4eee-912c-7f6908f5aab6MAsgharhttp://social.msdn.microsoft.com/Profile/en-US/?user=MAsgharCustomizaing MSBuild Build email notificationHi All, <br/>            I need to add some links in MSBuild build notification email generated by TFS. I have already figured out that I will write a custom task but sure for following points<br/>             1. Which Target needs to be used<br/>             2. Which xml or any file contains contents of email which is to be sent by TFS and how i will able to add my links<br/><br/>Thanks in advance<br/>Kind Regads<br/>            Thu, 12 Nov 2009 15:13:22 Z2009-11-12T17:21:03Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/289ee168-5535-4bc1-a29f-941f566a509bhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/289ee168-5535-4bc1-a29f-941f566a509bJohanKlijnhttp://social.msdn.microsoft.com/Profile/en-US/?user=JohanKlijnAssemblyInfoTask does not update AssemblyInfo.vb after upgrade from TFS 2007 to TFS2010Hi,<br/><br/>we upgraded our TFS 2007 to TFS2010. In our automated build we are using the AssemblyTask to automatically update all the AssemblyInfo files before compiling all our projects. It worked fine with TFS2007, but now we get a &quot;error&quot; message:<br/><br/>&quot;Skipping target &quot;UpdateAssemblyInfoFiles&quot; because all output files are up-to-date with respect to the input files.&quot;<br/><br/>The Build Definition is using the default &quot;UpgradeTemplate.xaml&quot; and we didn't change anything to the TFSBuild.proj.<br/><br/><br/>Wed, 11 Nov 2009 16:57:31 Z2009-11-12T16:10:55Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/cd85692a-288c-456b-987b-e54e89cdac0bhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/cd85692a-288c-456b-987b-e54e89cdac0bEvan Machusakhttp://social.msdn.microsoft.com/Profile/en-US/?user=Evan%20MachusakCustomizing team build number?<p>When Team Build launches, it automatically assigns a build number of the format:</p> <p>&lt;BuildTypeName&gt;_&lt;YYYYmmdd&gt;.&lt;number&gt;</p> <p>This is pretty heinous and means essentially nothing to our QA department who is used to build numbers like 5.30.010.  Under other circumstances I wouldn't be so picky but I've just discovered that the bug tracking uses these numbers to populate its drop down list of build numbers.</p> <p>Is there any way to change this number?  I suspect from what I know about Team Build that the answer will be no.  I have thought of a work around but I would really not go through the hassle (the work around being to change the name of the build type before every build by using a tf rename command, such that it would be something like 5.30.010_20060828.1, which although is still heinous, it has the information that QA needs to know).</p> <p>Speaking of, are those values coming from the Warehouse tables?  I've deleted all the old builds and they don't show up in the list when I select All Build Types from the Team Builds folder, but all the old ones ARE still showing up when I say New Bug and select the details tab.  Sometimes our QA finds bugs within 5 minutes of the release of a new build.  I would hate for them to not be able to submit a new bug because the build isn't showing up in the list because it hasn't been &quot;warehoused&quot; yet.</p> <p> </p> <p>Cheers,</p> <p>Evan</p>Mon, 28 Aug 2006 15:22:25 Z2009-11-12T13:03:26Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/eeb4791b-8388-4e87-95c5-4befd36a8194http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/eeb4791b-8388-4e87-95c5-4befd36a8194Barretjhttp://social.msdn.microsoft.com/Profile/en-US/?user=BarretjBuild Agent ErrorWhen I try to right click a build in the Team Explorer and select Queue New Build, I get this error in the Build Explorer listed as a build step with a little red circle with an X.  The build fails.<br/> <br/> <pre>TF215085: An error occurred while connecting to agent \direct2009\phqaodf1: TF215074: Failed to start build on agent '\direct2009\phqaodf1' because another build was unexpectedly in progress. Investigate the build agent status to determine the cause.</pre> <br/> How do I investigate the build agent status?  Thanks for any help.Wed, 11 Nov 2009 20:01:51 Z2009-11-12T08:57:32Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/2980f54c-bba2-4eb4-9832-20032c7bc792http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/2980f54c-bba2-4eb4-9832-20032c7bc792M.L.F.http://social.msdn.microsoft.com/Profile/en-US/?user=M.L.F.TF215085: An error occured while connecting to agent \[ProjectName]\[Application tier server]: Loading this assembly would produce a different grant set from other instancesWhen ever I queue a build with Visual Studio 2008 I get the following error sometimes immediately or sometimes after a few minutes of VS thinking about it:<br/><br/><strong>TF215085: An error occured while connecting to agent \[ProjectName]\[Application tier server]: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)</strong><br/><br/>The accound the TFS Build Service is running as is in the &quot;Build Services&quot; security group for the project.<br/>I don't see any errors in the event viewer on the client or server.<br/>No files are ever placed in the drop location.<br/><br/>Any ideas how to fix this?<br/><br/>We just finished migrated from our old TFS 2008 environment to a new TFS 2008 environment with different servers for application tier, data tier, reporting services, and analysis services.  Everything seems to be working fine except the builds.  We are running TFS 2008 (without SP1).Tue, 10 Nov 2009 20:06:31 Z2009-11-11T14:42:11Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/612da558-c8fd-4d84-a8db-cd55174a547fhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/612da558-c8fd-4d84-a8db-cd55174a547fmiketonghttp://social.msdn.microsoft.com/Profile/en-US/?user=miketongTrigger a TFS Build after completion of another buildI have 2 TFS builds, the first builds a number of assemblies in a solution and the second builds a website that uses the DLLs. I want the website build to be triggered after the assembly build has completed.<br/> <br/> I first thought of checking in the DLLs to the website project at the end of the second build. This works, but unfortunately it also triggers a build of the assemblies again as they pick up the checkin as a change (they are both setup as CI builds).<br/> <br/> The only way you can check in the DLLs is to have the website/bin as a directory in the workspace of the assemblies build, but because you have this it registers the checkin as a change to both builds.<br/> <br/> Can anyone suggest a solution to this problem, I don't really want to have one big solution with all the assemblies and the website together.<br/>Tue, 10 Nov 2009 09:55:08 Z2009-11-16T05:56:37Zhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/9350929a-4b50-4a55-9235-e0f8bebecd3bhttp://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/9350929a-4b50-4a55-9235-e0f8bebecd3btaibo19http://social.msdn.microsoft.com/Profile/en-US/?user=taibo19Customize Teambuild number same as assembly info numberHi,<br/><br/>My goal is to customize the default BuildTypeName_YYYYMMDD.Rev to the following format CustomBuildName_AssemblyMajor.AssemblyMinor.AssemblyBuildNumber for our build name so we can trace down the same version of build number from Teambuild match the assembly info version since we are doing Assembly info update during the build kick off.<br/><br/>Appreciate if anyone can share any working custom build task to accomplish my goal.<br/><br/>taiboMon, 09 Nov 2009 14:28:41 Z2009-11-10T20:29:29Z