Published on: http://vstskb.net/blog/2008/09/testcontainer-works-with-webtest-loadtest-team-build-2008-with-sp1/ The new <TestContainer> item in Team Build 2008 in a great way to run tests without test metadata file (*.vsmdi). You can specify the following to run all unit tests found in assemblies matching the pattern *.Tests.dll and even specify .LoadTest and .WebTest files as well: <ItemGroup>
<TestContainer Include="$(Outdir)*.Tests.dll" />
<TestContainer Include="$(Outdir)WebTest1.webtest" />
<TestContainer Include="$(Outdir)LoadTest1.loadtest" />
But if you try to run it in Team Build 2008, you will get an error like: Could not load file or assembly.
That's because the task tries to do an...
A question I got today: "How can I configure my Team Build for an incremental build?".
Well, it's simple.
Team Build 2005
Add the PropertyGroup definition to the end of the TFSBuild.proj file, before the closing </project> tag.
Set the following properties: <PropertyGroup>
Team Build 2008
Set IncrementalBuild property to true. To do it, add the PropertyGroup definition to the end of the TFSBuild.proj file, before the closing </project> tag. <PropertyGroup>
When you want to build and deploy database projects with team build you need to edit the database project file and the Team Build file. That's because database projects store any non-default values for the TargetDatabase, TargetConnectionString, and DefaultDataPath properties in a <ProjectName>.dbproj.user file. *.user files are not checked into version control in order to let every user use different values. Step 1 - Modify build project file (team build .proj file) Open the BuildDefinition.proj file, and at the bottom of the file, between the </ItemGroup> element and the </Project> element, add the following: ...
TfsBuild.proj files can be located anywhere in source control in Team Build 2008. That is the reason why MS changed the default recursion type used to download files from the location of TfsBuild.proj to OneLevel only. The meaning is that only the contents of the exact directory of TfsBuild.proj are downloaded. Aaron Hallberg posted a solution to change this behavior. We have to modify the following line in the TfsBuildService.exe.config on the build machine: <add key="ConfigurationFolderRecursionType" value="Full" />
Make sure to restart the service after making the change!
Microsoft released a nice training kit (~126MB) (it's a real treasure!) for the latest technologies. This package covers a bunch of technologies and includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2008 features and a variety of framework technologies including: Visual Studio Tools for Office Visual Studio Team System Application Lifecycle Management C# 3.0 VB 9.0 LINQ ...
Next week I'll give a session at TechEd 2008 In Eilat, Israel. The session will introduce you how you can control your database changes and integrate it into your agile development methodology. Do you want to control your database changes? Do you want to test your database with unit test and even run static analysis on it? Do you want better life and easier deployment of the database schema changes to the production database? If one of your answers is YES, come and discover new world. Session Details: ...
I'm working on my TechEd demos which includes DB Projs and MSBuild + Team Build .I needed to remove one of my build agents. To remove a build agent, navigate to to the Build Menu, or the Build Explorer. Click on Manage Build Agents in order to remove/edit/add a build agent. In order to use the Build Menu, you must first open the Team Explorer. Otherwise, the Manage Build Agents will not be part of the menu.
The ability to remove entries from ItemGroups is one of the new features of MSBuild 3.5. To remove an Item from an ItemGroup in MSBuild 2.0 you would have to create a new ItemGroup from the old one and skip the Item that you needed removed. In MSBuild 3.5 we can achieve it by using the Remove parameter. Example: <ItemGroup>
<Files Include="a.cs" />
<Files Include="b.cs" />
<Files Include="c.cs" />
<Files Include="d.cs" />
<Files Include="e.cs" />
Few week ago, I've been asked by Patrick Smacchia, a C# MVP to try this tool. I really want to thanks Patrick to give me the chance to evaluate a professional edition. I installed it and start working with. After using this tool, it's my most favorite tool to reviewing my code! NDepend is an excellent tool that is designed to provide a very deep analysis of your compiled code to help you understand and control your development effort by managing both the quality and the complexity of your code. NDepend works in a very similar way...
Often I asked "What do I need to install on the TFS build machine in order to run tests?" Well, the answer is simple. In VSTS 2005 you have to install the Tester or Suite editions on the Build Machine to run tests (even Unit Tests). In VSTS 2008 installing the Developer Edition version is enough.