<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Visual Studio 2010 on blog.ehn.nu</title><link>https://blog.ehn.nu/categories/visual-studio-2010/</link><description>Recent content in Visual Studio 2010 on blog.ehn.nu</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 28 Jan 2016 21:23:00 +0000</lastBuildDate><atom:link href="https://blog.ehn.nu/categories/visual-studio-2010/index.xml" rel="self" type="application/rss+xml"/><item><title>Deploy On Premise Builds with Visual Studio Release Management vNext</title><link>https://blog.ehn.nu/2016/01/deploy-on-premise-builds-with-visual-studio-release-management-vnext/</link><pubDate>Thu, 28 Jan 2016 21:23:00 +0000</pubDate><guid>https://blog.ehn.nu/2016/01/deploy-on-premise-builds-with-visual-studio-release-management-vnext/</guid><description>&lt;p&gt;Microsoft&amp;rsquo;s &lt;a href="https://blog.ehn.nu/2015/12/microsoft-announces-next-generation-of-visual-studio-release-management/"&gt;new version of Visual Studio Release Management&lt;/a&gt; is currently in public preview in VSTS. It is currently targeted for the TFS 2015 Update 2 version that should be shipped later this spring.&lt;/p&gt;
&lt;p&gt;However, even if you are not all in on Visual Studio Team Services, you can still use this service! Since the build/release agents that are used can run on premise without any necessary firewall ports being opened inbound, you have full access to any internal TFS servers and application servers that you want to deploy to.&lt;/p&gt;</description></item><item><title>Managing Build Templates with Community TFS Build Manager</title><link>https://blog.ehn.nu/2012/02/managing-build-templates-with-community-tfs-build-manager/</link><pubDate>Tue, 21 Feb 2012 14:02:04 +0000</pubDate><guid>https://blog.ehn.nu/2012/02/managing-build-templates-with-community-tfs-build-manager/</guid><description>&lt;p&gt;A year ago I blogged about how to &lt;a href="http://geekswithblogs.net/jakob/archive/2010/11/03/managing-build-process-templates-in-tfs-2010-build.aspx"&gt;manage your build process templates using the TFS API&lt;/a&gt;. The main reason for doing this is that you can (and should!) store your “golden” build process templates in a common location in your TFS project collection, and then add them to each team project that requires those templates. This way, you can fix a bug or add a new feature in one place and have the change affect all build definitions.&lt;/p&gt;</description></item><item><title>Handling Warnings and Errors with InvokeProcess in TFS 2010 Build</title><link>https://blog.ehn.nu/2012/02/handling-warnings-and-errors-with-invokeprocess-in-tfs-2010-build/</link><pubDate>Wed, 01 Feb 2012 20:55:18 +0000</pubDate><guid>https://blog.ehn.nu/2012/02/handling-warnings-and-errors-with-invokeprocess-in-tfs-2010-build/</guid><description>&lt;p&gt;&lt;br&gt;
The &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.build.workflow.activities.invokeprocess.aspx"&gt;InvokeProcess activity&lt;/a&gt; is very useful when it comes to running shell commands and external command line tools during a build process. When it comes to integrating with TFS source control during a build, the TF.exe command line tool can be your friend, as it lets you do most of the usual stuff such as check-in, checkout, add, modify workspaces etc.&lt;/p&gt;
&lt;p&gt;However, it can be a bit tricky to handle the output from tf.exe, since it often produces warnings that is not necessarily a problem for your build. This is not a problem related only to tf.exe, but to all applications that produces errors and warnings on the canonical error format.&lt;/p&gt;</description></item><item><title>Avoiding TF237124 when Creating Work Items in New Areas</title><link>https://blog.ehn.nu/2012/01/avoiding-tf237124-when-creating-work-items-in-new-areas/</link><pubDate>Fri, 20 Jan 2012 09:42:41 +0000</pubDate><guid>https://blog.ehn.nu/2012/01/avoiding-tf237124-when-creating-work-items-in-new-areas/</guid><description>&lt;p&gt;At my &lt;a href="http://www.inmetacrayon.no/English/about_inmeta/Pages/default.aspx"&gt;company&lt;/a&gt; we write a lot of tools and extensions that uses the TFS API to automate various things for us. A very common thing to automate is the creation of work items and the areas and iterations structure.&lt;/p&gt;
&lt;p&gt;Creating a work item using the TFS API is simple, just connect to TFS, get the &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.workitemtracking.client.workitemstore(v=vs.100).aspx"&gt;WorkItemStore&lt;/a&gt; service object and create a new work item and set any fields that you want to: &lt;br&gt;
&lt;strong&gt;&lt;br&gt;
Creating a work item&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Introducing: Community TFS Build Manager</title><link>https://blog.ehn.nu/2011/12/introducing-community-tfs-build-manager/</link><pubDate>Fri, 30 Dec 2011 12:36:06 +0000</pubDate><guid>https://blog.ehn.nu/2011/12/introducing-community-tfs-build-manager/</guid><description>&lt;p&gt;The latest release of the &lt;a href="http://tfsbuildextensions.codeplex.com/"&gt;Community TFS Build Extensions&lt;/a&gt; include a brand new tool called &lt;em&gt;Community TFS Build Manager&lt;/em&gt; and has been created for two reasons:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;An implementation of the Team Foundation Build API which is referenced by the Rangers Build Customization Guidance V2 (available H1 2012) \&lt;/li&gt;
&lt;li&gt;Provide a solution to a real problem. The Community TFS Build Manager is intended to ease the management of builds in medium to large Team Foundation Server environments, though it does provide a few features which all users may find useful.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The first version of the tool has been implemented by myself and &lt;a href="http://www.freetodev.com/"&gt;Mike Fourie&lt;/a&gt;. You can download the extension from the Visual Studio Gallery here: &lt;br&gt;
&lt;a href="http://visualstudiogallery.msdn.microsoft.com/16bafc63-0f20-4cc3-8b67-4e25d150102c" title="http://visualstudiogallery.msdn.microsoft.com/16bafc63-0f20-4cc3-8b67-4e25d150102c"&gt;http://visualstudiogallery.msdn.microsoft.com/16bafc63-0f20-4cc3-8b67-4e25d150102c&lt;/a&gt;&lt;/p&gt;</description></item><item><title>December 2011 TFS Power Tools Release</title><link>https://blog.ehn.nu/2011/12/december-2011-tfs-power-tools-release/</link><pubDate>Fri, 16 Dec 2011 17:07:56 +0000</pubDate><guid>https://blog.ehn.nu/2011/12/december-2011-tfs-power-tools-release/</guid><description>&lt;p&gt;&lt;a href="http://blogs.msdn.com/b/bharry/"&gt;Brian Harry&lt;/a&gt; just posted an update on the latest version of the TFS 2010 Power Tools. This will most likely by the last version of the Power Tools for the TFS 2010 version, next version will target Dev11!&lt;/p&gt;
&lt;p&gt;The main improvements in this release are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Team Foundation Server Power Tools for Eclipse&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;MSSCCI Provider for 64-bit IDE’s&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;VS 2010 Power Tools update&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Improved Work item Search&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Best Practice Analyzer now also analyzes the integration with Project Server, if you are using it&lt;/p&gt;</description></item><item><title>TF237165: Team Foundation could not update the work item because of a validation error on the server.</title><link>https://blog.ehn.nu/2011/12/tf237165-team-foundation-could-not-update-the-work-item-because-of-a-validation-error-on-the-server/</link><pubDate>Mon, 12 Dec 2011 17:21:15 +0000</pubDate><guid>https://blog.ehn.nu/2011/12/tf237165-team-foundation-could-not-update-the-work-item-because-of-a-validation-error-on-the-server/</guid><description>&lt;p&gt;I often use the VS 2010/TFS 2010 evaluation virtual machines that Microsoft publishes every 6 months with the latest bits. It’s a great timesaver to use an image where everything is already setup and also contains a bit of sample data that is useful when you want to demo something for customers.&lt;/p&gt;
&lt;p&gt;There is one thing that has always been a, albeit small, but still very annoying problem and that is that the builds always partially fail when you start using the image. When you want to demo the powerful feature of associated work items in a build, you’ll find yourself with your pants down since the build fails when trying to update the associated work item! Even when looking at the historical builds for the Tailspin Toys project, you will notice that they also partially failed:&lt;/p&gt;</description></item><item><title>Compatibility Problem with Microsoft Test Manager 2010 and Visual Studio 2011</title><link>https://blog.ehn.nu/2011/12/compatibility-problem-with-microsoft-test-manager-2010-and-visual-studio-2011/</link><pubDate>Fri, 09 Dec 2011 11:38:00 +0000</pubDate><guid>https://blog.ehn.nu/2011/12/compatibility-problem-with-microsoft-test-manager-2010-and-visual-studio-2011/</guid><description>&lt;p&gt;*&lt;em&gt;UPDATE 10.01.2012: *&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The issue has been resolved by Microsoft and will be addressed in patch soon. Here is the full description from the Connect site: \&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“We&amp;rsquo;ve identified the rootcause. This bug was introduced in the compatibility GDR patch released for VS 2010 to work against 2011 TFS Server. We shall be releasing a patch soon. Till then, please follow the workaround mentioned to unblock yourselves. “&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;When setting up a physical environment for a new test controller on our TFS 2010 server, I ran into a problem that seems to be related to having installed the &lt;a href="http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=39070"&gt;Visual Studio 2010 SP1 TFS Compatibility GDR&lt;/a&gt; and/or &lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=27543"&gt;Visual Studio 2011 Developer Preview&lt;/a&gt;&lt;/p&gt;</description></item><item><title>TFS 2010 Build - Troubleshooting the TF215097 error</title><link>https://blog.ehn.nu/2011/12/tfs-2010-build-troubleshooting-the-tf215097-error/</link><pubDate>Thu, 08 Dec 2011 20:51:48 +0000</pubDate><guid>https://blog.ehn.nu/2011/12/tfs-2010-build-troubleshooting-the-tf215097-error/</guid><description>&lt;p&gt;Anyone working with developing custom activities in TFS 2010 Build has run into the following dreadful error message when running the build:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TF215097: An error occurred while initializing a build for build definition TeamProjectMyBuildDefinition: Cannot create unknown type &amp;lsquo;{clr-namespace:[namespace];assembly=[assembly]}Activity&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What the error means is that when the TFS build service loads the build process template XAML for the build definition, it can’t create an instance of the customer workflow activity that is referenced from it.&lt;/p&gt;</description></item><item><title>First stable release of the Community TFS 2010 Build Extensions</title><link>https://blog.ehn.nu/2011/07/first-stable-release-of-the-community-tfs-2010-build-extensions/</link><pubDate>Mon, 04 Jul 2011 22:50:15 +0000</pubDate><guid>https://blog.ehn.nu/2011/07/first-stable-release-of-the-community-tfs-2010-build-extensions/</guid><description>&lt;p&gt;Today the first stable release of the &lt;a href="http://tfsbuildextensions.codeplex.com/"&gt;Community TFS 2010 Build Extensions&lt;/a&gt; shipped on the CodePlex site. Visual Studio ALM MVP &lt;a href="http://freetodev.com/"&gt;Mike Fourie&lt;/a&gt; (aka Mr &lt;a href="http://msbuildextensionpack.codeplex.com/"&gt;MSBuild Extension Pack&lt;/a&gt;) has been the leader of this project and has done a tremendous job, both in contributing functionality as well as coordinating the work for the first release. Great work Mike! I (as well as several others) have contributed a small part of the activities, I plan to be working on the upcoming releases as well.&lt;/p&gt;</description></item><item><title>Automatically Merging Work Items in TFS 2013</title><link>https://blog.ehn.nu/2011/05/automatically-merging-work-items-in-tfs-2013/</link><pubDate>Tue, 17 May 2011 20:43:31 +0000</pubDate><guid>https://blog.ehn.nu/2011/05/automatically-merging-work-items-in-tfs-2013/</guid><description>&lt;p&gt;** Source available at &lt;a href="http://mergeworkitems.codeplex.com/" title="http://mergeworkitems.codeplex.com/"&gt;http://mergeworkitems.codeplex.com/&lt;/a&gt; **&lt;/p&gt;
&lt;p&gt;Half a year ago I wrote about about &lt;a href="http://geekswithblogs.net/jakob/archive/2010/10/27/merging-work-items-in-tfs-2010.aspx"&gt;Merging Work Items&lt;/a&gt; with a custom check-in policy. The policy evaluated the pending changes and for all pending merges, it traversed the merge history to find the associated work items and let the user add them to the current changeset.&lt;/p&gt;
&lt;p&gt;I promised to post the source to the check-in policy (and I’ve got a lot of requests for it), but I never did. This was primary for two reasons:&lt;/p&gt;</description></item><item><title>TFS 2010 Inmeta Build Explorer</title><link>https://blog.ehn.nu/2011/04/tfs-2010-inmeta-build-explorer/</link><pubDate>Mon, 04 Apr 2011 09:38:07 +0000</pubDate><guid>https://blog.ehn.nu/2011/04/tfs-2010-inmeta-build-explorer/</guid><description>&lt;p&gt;This weekend we at Inmeta release a free Visual Studio 2010 Team Explorer extensions that solves the problem with the Builds node in the Team Explorer not being hierarchic. For some reason, this part of the Team Explorer didn’t get the nice hierarchical folder structure that the Work items node got in 2010. The result is that, for a company that has several hundreds of builds in the same team project, it becomes very hard to navigate.&lt;/p&gt;</description></item><item><title>Integrating Code Metrics in TFS 2010 Build</title><link>https://blog.ehn.nu/2011/01/integrating-code-metrics-in-tfs-2010-build/</link><pubDate>Sun, 30 Jan 2011 20:39:50 +0000</pubDate><guid>https://blog.ehn.nu/2011/01/integrating-code-metrics-in-tfs-2010-build/</guid><description>&lt;p&gt;The build process template and custom activity described in this post is available here: &lt;br&gt;
&lt;a href="http://cid-ee034c9f620cd58d.office.live.com/self.aspx/BlogSamples/Inmeta%20TFS%20Build%20Sample.zip" title="http://cid-ee034c9f620cd58d.office.live.com/self.aspx/BlogSamples/Inmeta%20TFS%20Build%20Sample.zip"&gt;http://cid-ee034c9f620cd58d.office.live.com/self.aspx/BlogSamples/Inmeta%20TFS%20Build%20Sample.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Running code metrics has been available since VS 2008, but only from inside the IDE. Yesterday Microsoft finally released &lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=edd1dfb0-b9fe-4e90-b6a6-5ed6f6f6e615"&gt;Visual Studio Code Metrics Power Tool 10.0&lt;/a&gt;, a command line tool that lets you run code metrics on your applications.  This means that it is now possible to perform code metrics analysis on the build server as part of your nightly/QA builds. In this post I will show how you can run the metrics command line tool from a build, and also a custom activity that reads the output and appends the results to the build log, and fails the build if the metric values exceeds certain (configurable) treshold values.&lt;/p&gt;</description></item><item><title>TFS 2010 Build Custom Activity for Merging Assemblies</title><link>https://blog.ehn.nu/2010/12/tfs-2010-build-custom-activity-for-merging-assemblies/</link><pubDate>Wed, 15 Dec 2010 01:59:29 +0000</pubDate><guid>https://blog.ehn.nu/2010/12/tfs-2010-build-custom-activity-for-merging-assemblies/</guid><description>&lt;p&gt;*** The sample build process template discussed in this post is available for download from here: &lt;a href="http://cid-ee034c9f620cd58d.office.live.com/self.aspx/BlogSamples/ILMerge.xaml" title="http://cid-ee034c9f620cd58d.office.live.com/self.aspx/BlogSamples/ILMerge.xaml"&gt;http://cid-ee034c9f620cd58d.office.live.com/self.aspx/BlogSamples/ILMerge.xaml&lt;/a&gt; ***&lt;/p&gt;
&lt;p&gt;In my &lt;a href="http://geekswithblogs.net/jakob/archive/2010/12/08/dependency-replication-with-tfs-2010-build.aspx"&gt;previous post&lt;/a&gt; I talked about &lt;em&gt;library builds&lt;/em&gt; that we use to build and replicate dependencies between applications in TFS. This is typically used for common libraries and tools that several other application need to reference.&lt;/p&gt;
&lt;p&gt;When the libraries grow in size over time, so does the number of assemblies. So all solutions that uses the common library must reference all the necessary assemblies that they need, and if we for example do a refactoring and extract some &lt;br&gt;
code into a new assembly, all the clients must update their references to reflect these changes, otherwise it won’t compile.&lt;/p&gt;</description></item><item><title>Dependency Replication with TFS 2010 Build</title><link>https://blog.ehn.nu/2010/12/dependency-replication-with-tfs-2010-build/</link><pubDate>Wed, 08 Dec 2010 08:02:09 +0000</pubDate><guid>https://blog.ehn.nu/2010/12/dependency-replication-with-tfs-2010-build/</guid><description>&lt;p&gt;Some time ago, I wrote a &lt;a href="http://geekswithblogs.net/jakob/archive/2009/03/05/implementing-dependency-replication-with-tfs-team-build.aspx"&gt;post&lt;/a&gt; about how to implement dependency replication using TFS 2008 Build. We use this for &lt;em&gt;Library builds&lt;/em&gt;, where we set up a build definition for a common library, and have the build check the resulting assemblies back into source control. The folder &lt;strong&gt;is&lt;/strong&gt; then branched to the applications that need to reference the common library. See the above post for more details.&lt;/p&gt;
&lt;p&gt;Of course, we have reimplemented this feature in TFS 2010 Build, which results in a much nicer experience for the developer who wants to setup a new library build. Here is how it looks: &lt;br&gt;
There is a separate build process template for library builds registered in all team projects \&lt;/p&gt;</description></item><item><title>Performing Checkins in TFS 2010 Build</title><link>https://blog.ehn.nu/2010/11/performing-checkins-in-tfs-2010-build/</link><pubDate>Wed, 03 Nov 2010 10:20:53 +0000</pubDate><guid>https://blog.ehn.nu/2010/11/performing-checkins-in-tfs-2010-build/</guid><description>&lt;p&gt;Update 15.03.2014 - Fixed broken link to download&lt;/p&gt;
&lt;p&gt;*** The custom activity is availabe for download here: &lt;a href="http://cid-ee034c9f620cd58d.office.live.com/browse.aspx/BlogSamples?uc=1" title="http://cid-ee034c9f620cd58d.office.live.com/browse.aspx/BlogSamples?uc=1"&gt;https://onedrive.live.com/redir?resid=EE034C9F620CD58D%21168&lt;/a&gt; ***&lt;/p&gt;
&lt;p&gt;Often when creating different types of release builds (e.g. where you build something that should be installed or consumed by other applications) there is a need to check in the results of the build back &lt;br&gt;
to source control. A common build type for us at Inmeta is &lt;em&gt;Library Builds&lt;/em&gt;, which we use for common libraries that are shared among several applications. We have created a special build process template &lt;br&gt;
for this scenario that handles versioning, copying of the resulting binaries to a pre-defined folder, optionally merges the assemblies using ILMerge, and finally checking that binaries back to TFS as part of the build.&lt;/p&gt;</description></item><item><title>Managing Build Process Templates in TFS 2010 Build</title><link>https://blog.ehn.nu/2010/11/managing-build-process-templates-in-tfs-2010-build/</link><pubDate>Wed, 03 Nov 2010 02:23:40 +0000</pubDate><guid>https://blog.ehn.nu/2010/11/managing-build-process-templates-in-tfs-2010-build/</guid><description>&lt;p&gt;One of the great new features in TFS 2010 Build was the ability to define Build Process Templates that can be reused across build definitions. The Build Process Template file itself is a Windows Workflow 4.0 xaml file &lt;br&gt;
and can be stored anywhere in source control. When a developer creates a new build definition in Team Explorer, he can choose from a list of Build Process Templates:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://gwb.blob.core.windows.net/jakob/Windows-Live-Writer/Managing-Build-Process-Templates-in-TFS-_CF49/image_2.png"&gt;&lt;img alt="image" loading="lazy" src="https://blog.ehn.nu/2010/11/managing-build-process-templates-in-tfs-2010-build/23_image_thumb.png" title="image"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This list is populated with the following build process templates:&lt;/p&gt;</description></item><item><title>Developing and debugging Server Side Event Handlers in TFS 2010</title><link>https://blog.ehn.nu/2010/10/developing-and-debugging-server-side-event-handlers-in-tfs-2010/</link><pubDate>Wed, 27 Oct 2010 22:48:11 +0000</pubDate><guid>https://blog.ehn.nu/2010/10/developing-and-debugging-server-side-event-handlers-in-tfs-2010/</guid><description>&lt;p&gt;&lt;br&gt;
&lt;strong&gt;Update 2012-01-23: Added note about .NET framework&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/hinshelm/Default.aspx"&gt;Martin Hinshelwood&lt;/a&gt; wrote an excellent post recently  &lt;a href="http://nakedalm.com/team-foundation-server-2010-event-handling-with-subscribers/"&gt;http://nakedalm.com/team-foundation-server-2010-event-handling-with-subscribers/&lt;/a&gt; ) about a new type of integration &lt;br&gt;
available in TFS 2010, namely server side event handlers, that is executed within the TFS context. I wasn’t aware of this new feature and as Martin notes, there doesn’t seem to be any material/documentation of it at all. &lt;br&gt;
Previously, when you wanted some custom action to be executed when some event occurs in TFS (check-in, build completed…) you wrote a web/WCF service with a predefined signature and subscribed to the event using bissubscribe.exe. &lt;br&gt;
Usually you want to get more information from TFS than what is available in the event itself so you would have to use the TFS client object model to make new requests back to TFS to get that information. &lt;br&gt;
The deployment of these web services is always a bit of a hassle, especially around security. Also there is no way to affect the event itself, e.g. to stop the event from finishing depending on some condition. This can be done using &lt;br&gt;
server side events.&lt;/p&gt;</description></item><item><title>Merging Work Items in TFS 2010</title><link>https://blog.ehn.nu/2010/10/merging-work-items-in-tfs-2010/</link><pubDate>Wed, 27 Oct 2010 08:10:13 +0000</pubDate><guid>https://blog.ehn.nu/2010/10/merging-work-items-in-tfs-2010/</guid><description>&lt;p&gt;In TFS 2010, branching and merging have been greatly improved with support for branch visualization and tracking of changesets and work items across branches. A simple example of this looks like this: \&lt;/p&gt;
&lt;p&gt;&lt;a href="http://gwb.blob.core.windows.net/jakob/Windows-Live-Writer/Merging-Work-Items-in-TFS-2010_12A4F/image_6.png"&gt;&lt;img alt="image" loading="lazy" src="https://blog.ehn.nu/2010/10/merging-work-items-in-tfs-2010/22_image_thumb_2.png" title="image"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://gwb.blob.core.windows.net/jakob/Windows-Live-Writer/Merging-Work-Items-in-TFS-2010_12A4F/image_19.png"&gt;&lt;img alt="image" loading="lazy" src="https://blog.ehn.nu/2010/10/merging-work-items-in-tfs-2010/7_image_thumb_7.png" title="image"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here we track Work Item nr 3 which was originally resovled in the Test branch (with changeset 35). We can also see that the work item has been merged into the Production branch (as changeset 37), back to Main (62) and finally to FeatureC (140). &lt;br&gt;
If we switch to the Timeline view, we get a nice view of the order of these merges, together with the dates.&lt;/p&gt;</description></item><item><title>TFS 2010 DeepDive i Stockholm i oktober</title><link>https://blog.ehn.nu/2010/09/tfs-2010-deepdive-i-stockholm-i-oktober/</link><pubDate>Fri, 03 Sep 2010 02:08:55 +0000</pubDate><guid>https://blog.ehn.nu/2010/09/tfs-2010-deepdive-i-stockholm-i-oktober/</guid><description>&lt;p&gt;&lt;strong&gt;Note: Swedish post&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Efter att ha kört många seminarier, workshops och deep dive kurser på Visual Studio och TFS 2010 i Norge är det nu äntligen dags för oss att köra kurs i Sverige!&lt;/p&gt;
&lt;p&gt;Första tillfället blir nu i oktober på Cornerstone 18-21 Oktober. Saxat från kursbeskrivningen:&lt;/p&gt;
&lt;h3&gt;&lt;/h3&gt;
&lt;h3 id="t359---effektiv-systemutveckling-med-visual-studio-och-team-foundation-server-2010"&gt;T359 - Effektiv systemutveckling med Visual Studio och Team Foundation Server 2010&lt;/h3&gt;
&lt;p&gt;I denna utbildning lär vi dig hur du och din organisation kan effektivisera systemutvecklingsprocessen med hjälp av Visual Studio och Team Foundation Server. Målgruppen för denna kurs är främst utvecklare och arkitekter men den är lämplig även för testare och den som ansvarar för metoder och processer.&lt;/p&gt;</description></item><item><title>TFS Team Build 2010: How to place the build output to a fixed location</title><link>https://blog.ehn.nu/2010/09/tfs-team-build-2010-how-to-place-the-build-output-to-a-fixed-location/</link><pubDate>Wed, 01 Sep 2010 08:47:11 +0000</pubDate><guid>https://blog.ehn.nu/2010/09/tfs-team-build-2010-how-to-place-the-build-output-to-a-fixed-location/</guid><description>&lt;p&gt;By default, TFS Team Build creates a new folder in the drop location for every build. I have seen request from people that wonder how to always have team build put the output in the same folder every time, effectively overwriting the results from the last build. This is easy to accomplish by adding an activity that copies the drop folder to a fixed location.&lt;/p&gt;
&lt;p&gt;To copy the result of the build to a fixed location, you need to modify the build process template:&lt;/p&gt;</description></item><item><title>TFS 2010 Build: Dealing with the API restriction error</title><link>https://blog.ehn.nu/2010/06/tfs-2010-build-dealing-with-the-api-restriction-error/</link><pubDate>Tue, 08 Jun 2010 06:08:40 +0000</pubDate><guid>https://blog.ehn.nu/2010/06/tfs-2010-build-dealing-with-the-api-restriction-error/</guid><description>&lt;p&gt;Recently I’ve come across this error a couple of times when running builds that exeucte unit tests using Test containers:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;API restriction: The assembly &amp;lsquo;file:///C:Builds&lt;path&gt;myassembly.dll&amp;rsquo; has already loaded from a different location. It cannot be loaded from a new location within the same appdomain.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Every time I’ve got this error, the project has been a web application, and the path to the assembly points down to the _PublishedWebsites directory that is created beneath the Binaries folder during a team build.&lt;/p&gt;</description></item><item><title>Building Visual Studio Setup Projects with TFS 2010 Team Build</title><link>https://blog.ehn.nu/2010/05/building-visual-studio-setup-projects-with-tfs-2010-team-build/</link><pubDate>Fri, 14 May 2010 08:38:28 +0000</pubDate><guid>https://blog.ehn.nu/2010/05/building-visual-studio-setup-projects-with-tfs-2010-team-build/</guid><description>&lt;p&gt;UPDATE: 2010-09-15 – Added details about the use of the ExitCode variable&lt;/p&gt;
&lt;p&gt;One of the most common complaints from people starting to use Team Build is that is doesn’t support building Microsoft’s own Setup and Deployment project (*.vdproj). When creating a default build definition that compiles a solution containing a setup project, you’ll get the following warning:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The project file &amp;ldquo;MyProject.vdproj&amp;rdquo; is not supported by MSBuild and cannot be built.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Speed up loading of test results from builds in Visual Studio</title><link>https://blog.ehn.nu/2010/05/speed-up-loading-of-test-results-from-builds-in-visual-studio/</link><pubDate>Sun, 09 May 2010 23:04:09 +0000</pubDate><guid>https://blog.ehn.nu/2010/05/speed-up-loading-of-test-results-from-builds-in-visual-studio/</guid><description>&lt;p&gt;I still see people complaining about the long time it takes to load test results from a TFS build in Visual Studio. And they make a valid point, it &lt;strong&gt;does&lt;/strong&gt; take a very long time to load the test results, even for a small number of tests. The reason for this is that the test results is not just the result of the test run but also all the binaries that were part of the test run. This often also means that the debug symbols (*.pdb) will be downloaded to your local machine. This reason for this behaviour is that it letsyou re-run the tests locally.&lt;/p&gt;</description></item><item><title>Executing legacy MSBuild scripts in TFS 2010 Build</title><link>https://blog.ehn.nu/2010/05/executing-legacy-msbuild-scripts-in-tfs-2010-build/</link><pubDate>Wed, 05 May 2010 00:04:13 +0000</pubDate><guid>https://blog.ehn.nu/2010/05/executing-legacy-msbuild-scripts-in-tfs-2010-build/</guid><description>&lt;p&gt;When upgrading from TFS 2008 to TFS 2010, all builds are “upgraded” in the sense that a build definition with the same name is created, and it uses the &lt;em&gt;UpgradeTemplate&lt;/em&gt;  build process template to execute the build. This template basically just runs MSBuild on the existing TFSBuild.proj file. The build definition contains a property called &lt;em&gt;ConfigurationFolderPath&lt;/em&gt; that points to the TFSBuild.proj file.&lt;/p&gt;
&lt;p&gt;So, existing builds will run just fine after upgrade. But what if you want to use the new workflow functionality in TFS 2010 Build, but still have a lot of MSBuild scripts that maybe call custom MSBuild tasks that you don’t have the time to rewrite? Then one option is to keep these MSBuild scrips and call them from a TFS 2010 Build workflow. This can be done using the MSBuild workflow activity that is avaiable in the toolbox in the &lt;em&gt;Team Foundation Build Activities&lt;/em&gt; section:&lt;/p&gt;</description></item><item><title>Modify Build Failure Work Item in TFS 2010 Build</title><link>https://blog.ehn.nu/2010/04/modify-build-failure-work-item-in-tfs-2010-build/</link><pubDate>Wed, 28 Apr 2010 08:15:25 +0000</pubDate><guid>https://blog.ehn.nu/2010/04/modify-build-failure-work-item-in-tfs-2010-build/</guid><description>&lt;p&gt;The default behaviour in TFS Team Build (all versions) is to create a bug work item when a build fails. This main benefit of this is that you get a work item for something that needs to be done, namely to fix the build!. When the developer responsible for the build failure has fixed the problem, he/she can associated that check-in with the work item that was created from the previous build failure.&lt;/p&gt;</description></item><item><title>Creating a Build Definition using the TFS 2010 API</title><link>https://blog.ehn.nu/2010/04/creating-a-build-definition-using-the-tfs-2010-api/</link><pubDate>Mon, 26 Apr 2010 20:09:00 +0000</pubDate><guid>https://blog.ehn.nu/2010/04/creating-a-build-definition-using-the-tfs-2010-api/</guid><description>&lt;p&gt;*** UPDATE 2010-08-17 ** Several people have asked me for a complete sample application, so I have put this together and it is available here: &lt;br&gt;
&lt;a href="http://cid-ee034c9f620cd58d.office.live.com/self.aspx/BlogSamples/CreateTFSBuildDefinition.zip" title="http://cid-ee034c9f620cd58d.office.live.com/self.aspx/BlogSamples/CreateTFSBuildDefinition.zip"&gt;http://cid-ee034c9f620cd58d.office.live.com/self.aspx/BlogSamples/CreateTFSBuildDefinition.zip&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;In this post I will show how to create a new build definition in TFS 2010 using the TFS API. When creating a build definition manually, using Team Explorer, the necessary steps are lined &lt;br&gt;
out in the New Build Definition Wizard:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://gwb.blob.core.windows.net/jakob/WindowsLiveWriter/CreatingaBuildDefinitionusingtheTFS2010A_12F55/image_4.png"&gt;&lt;img alt="image" loading="lazy" src="https://blog.ehn.nu/2010/04/creating-a-build-definition-using-the-tfs-2010-api/28_image_thumb_1.png" title="image"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So, lets see how the code looks like, using the same order. To start off, we need to connect to TFS and get a reference to the IBuildServer object:&lt;/p&gt;</description></item><item><title>Getting TF215097 error after modifying a build process template in TFS Team Build 2010</title><link>https://blog.ehn.nu/2010/04/getting-tf215097-error-after-modifying-a-build-process-template-in-tfs-team-build-2010/</link><pubDate>Wed, 21 Apr 2010 23:52:47 +0000</pubDate><guid>https://blog.ehn.nu/2010/04/getting-tf215097-error-after-modifying-a-build-process-template-in-tfs-team-build-2010/</guid><description>&lt;p&gt;When embracing Team Build 2010, you typically want to define several different build process templates for different scenarios. Common examples here are CI builds, QA builds and release builds. For example, in a contiuous build you often have no interest in publishing to the symbol store, you might or might not want to associate changesets and work items etc. The build server is often heavily occupied as it is, so you don’t want to have it doing more that necessary. Try to define a set of build process templates that are used across your company. In previous versions of TFS Team Build, there was no easy way to do this. But in TFS 2010 it is very easy so there is no excuse to not do it! :-)&lt;/p&gt;</description></item><item><title>Implementing Release Notes in TFS Team Build 2010</title><link>https://blog.ehn.nu/2010/04/implementing-release-notes-in-tfs-team-build-2010/</link><pubDate>Thu, 15 Apr 2010 23:50:49 +0000</pubDate><guid>https://blog.ehn.nu/2010/04/implementing-release-notes-in-tfs-team-build-2010/</guid><description>&lt;p&gt;In TFS Team Build (all versions), each build is associated with changesets and work items. To determine which changesets that should be associated with the current build, Team Build finds the label of the “Last Good Build” an then aggregates all changesets up unitl the label for the current build. Basically this means that if your build is failing, every changeset that is checked in will be accumulated in this list until the build is successful.&lt;/p&gt;</description></item><item><title>Reember to uninstall all Beta 2 stuff before upgrading to VS 2010 RC</title><link>https://blog.ehn.nu/2010/02/reember-to-uninstall-all-beta-2-stuff-before-upgrading-to-vs-2010-rc/</link><pubDate>Tue, 09 Feb 2010 20:52:05 +0000</pubDate><guid>https://blog.ehn.nu/2010/02/reember-to-uninstall-all-beta-2-stuff-before-upgrading-to-vs-2010-rc/</guid><description>&lt;p&gt;Yesterday I upgraded my dev laptop to VS 2010 RC. To upgrade to VS 2010 RC you need to first uninstall VS 2010 Beta 2 (which doesn’t really make it an upgrade does it? :-)&lt;/p&gt;
&lt;p&gt;I also hade an instance of TFS 2010 Beta 2 om my machine so I uninstalled that as well. The installation of VS 2010 went fine, and then I installed Team Explorer 2010 RC. However, when starting VS and switching to the team explorer, I got the following error:&lt;/p&gt;</description></item><item><title>TFS 2010 – Managing Build Agents using the API</title><link>https://blog.ehn.nu/2009/12/tfs-2010-managing-build-agents-using-the-api/</link><pubDate>Tue, 08 Dec 2009 20:47:52 +0000</pubDate><guid>https://blog.ehn.nu/2009/12/tfs-2010-managing-build-agents-using-the-api/</guid><description>&lt;p&gt;In previous versions of TFS, you installed TFS Team Build on the build server and you got one build service agent. It was/is possible to start several build agents on the same server, but it is a bit of a mess. &lt;br&gt;
In addition, for each team project TFS 2008 build service can only execute one at a time (Note that builds from different team project can execute in parallell, a lot of people still don’t know this)&lt;/p&gt;</description></item><item><title>TFS 2010 Beta 2 – Upgrading Builds from TFS 2008</title><link>https://blog.ehn.nu/2009/11/tfs-2010-beta-2-upgrading-builds-from-tfs-2008/</link><pubDate>Tue, 24 Nov 2009 20:23:13 +0000</pubDate><guid>https://blog.ehn.nu/2009/11/tfs-2010-beta-2-upgrading-builds-from-tfs-2008/</guid><description>&lt;p&gt;We are in the process of upgrading the entire company to TFS 2010 Beta 2, and in preparing for that we have done some test upgrades to make sure that all things work as expected after the upgrade. As expected, most issues that turned up had to do with builds. This is one of the areas that has changed the most compared to TFS 2008. I thought that I would use this post to run through some of the issues that we found.&lt;/p&gt;</description></item><item><title>TFS Team Build 2010: Working with Custom Code Activities</title><link>https://blog.ehn.nu/2009/08/tfs-team-build-2010-working-with-custom-code-activities/</link><pubDate>Thu, 13 Aug 2009 09:38:24 +0000</pubDate><guid>https://blog.ehn.nu/2009/08/tfs-team-build-2010-working-with-custom-code-activities/</guid><description>&lt;p&gt;&lt;em&gt;Disclaimer: This blog post discusses features in the TFS 2010 Beta 1 release. Some of these  features might be changed in the RTM release.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In TFS 2010, Microsoft has changed the build orchestration language in Team Build from MSBuild to Windows Workflow 4.0. &lt;a href="http://blogs.msdn.com/aaronhallberg/default.aspx"&gt;Aaron Hallberg&lt;/a&gt; has written a &lt;a href="http://blogs.msdn.com/aaronhallberg/archive/2009/06/01/writing-custom-activities-for-tfs-build-2010-beta-1.aspx"&gt;post&lt;/a&gt; on how to implement a custom workflow activity using either the workflow designer or using a code activity that composes an activity. In this post, I will show how to implement a “pure” code activity, i.e. no workflow elements,and how to add this activity to a build process definition. Note, this is still Beta 1, and some things will definitely change when Beta2 and RTM arrives but this will get you started with customizing your builds in TFS 2010.&lt;/p&gt;</description></item><item><title>VSTS 2010: Enabling Test Impact Analysis</title><link>https://blog.ehn.nu/2009/06/vsts-2010-enabling-test-impact-analysis/</link><pubDate>Thu, 04 Jun 2009 18:08:20 +0000</pubDate><guid>https://blog.ehn.nu/2009/06/vsts-2010-enabling-test-impact-analysis/</guid><description>&lt;p&gt;A really cool new feature in VSTS 2010 is &lt;em&gt;Test Impact Analysis&lt;/em&gt; which let developers view what tests that are affected by the current code changes. Pieter Gheysens wrote a &lt;a href="http://intovsts.net/2009/02/05/test-impact-analysis/"&gt;blog post&lt;/a&gt; on how to set this up in the CTP, but things have changed a bit in Beta 1 so I thought that I would show how it is done. Since it still is a bit unintuitive to enable it, it might change once again in the RTM. The reason that it is a bit unintuitive to set it up, is because you need to have the following things:&lt;/p&gt;</description></item><item><title>TFS Team Build 2010: Executing Unit Tests</title><link>https://blog.ehn.nu/2009/06/tfs-team-build-2010-executing-unit-tests/</link><pubDate>Wed, 03 Jun 2009 22:27:43 +0000</pubDate><guid>https://blog.ehn.nu/2009/06/tfs-team-build-2010-executing-unit-tests/</guid><description>&lt;p&gt;There are some changes and improvements in the area of executing unit tests in Team Build 2010. Mostly the changes make it easier to define &lt;strong&gt;which&lt;/strong&gt; unit tests you want to execute as part of the build. In this post I will go through the different options that you have when it comes to running unit tests and enabling code coverage.&lt;/p&gt;
&lt;p&gt;To configure test settings for a Team Build, you select Edit Build Definition in Team Explorer, and then go to the Build Process tab. In the Build process parameters box there is a section for the testing parameters. To change the parameters, just edit them and hit the save button. There is no need to check anything in or out to change the parameters. Only changes to the build process require you to check in the build process file (.xaml)&lt;/p&gt;</description></item><item><title>Working with Build Definitions in TFS Team Build 2010</title><link>https://blog.ehn.nu/2009/05/working-with-build-definitions-in-tfs-team-build-2010/</link><pubDate>Wed, 27 May 2009 22:17:35 +0000</pubDate><guid>https://blog.ehn.nu/2009/05/working-with-build-definitions-in-tfs-team-build-2010/</guid><description>&lt;p&gt;*Disclaimer: This blog post discusses features in the TFS 2010 Beta 1 release. Some of these  features might be changed in the RTM release. *&lt;br&gt;
In my &lt;a href="http://geekswithblogs.net/jakob/archive/2009/05/23/tfs-team-build-2010-whatrsquos-new.aspx"&gt;last post&lt;/a&gt; I talked about the new major features of Team Build in TFS 2010. This time, I will go into more detail on how you work with build definitions. In TFS 2010, the whole build process is now implemented on top of Windows Workflow Foundation 4.0 (WF4). This means that everything that has to do with creating and customizing builds in TFS 2010 is now done using a workflow designer UI. This means that you no longer have to remember all the different MSBuild targets when you want to insert some custom logic in your build. On the other hand, you obviously need to understand how a default team build process is implemented, which activities does what, what WF properties and variables that exist. And eventually you might also have to learn how to implement custom workflow activites when you need more functionality than what is included in the standard team build activities.&lt;/p&gt;</description></item><item><title>TFS Team Build 2010: What’s New?</title><link>https://blog.ehn.nu/2009/05/tfs-team-build-2010-whats-new/</link><pubDate>Sat, 23 May 2009 23:10:22 +0000</pubDate><guid>https://blog.ehn.nu/2009/05/tfs-team-build-2010-whats-new/</guid><description>&lt;p&gt;VSTS 2010 Beta 1 is finally available. Beta 1 is a huge release a contains tons of new functionality in almost all areas of Team System. We at &lt;a href="http://www.osiris.no"&gt;Osiris Data&lt;/a&gt; have been using Team System since the first beta, and we also help our customers how to adopt TFS in their organization. So for us VSTS 2010 is a very exciting release.&lt;/p&gt;
&lt;p&gt;I am planning to post several blog entries about the new functionality of VSTS 2010, in particular I will focus on Team Foundation Server (TFS) and Team Build. I have been working a lot with Team Build 2005 and 2008 and have been looking forward to the 2010 release. VSTS 2008 was a minor release for TFS, so a lot of missing features and change requests haven’t been implemented until now.&lt;/p&gt;</description></item><item><title>Free Seminar on Visual Studio Team System 2010 in Oslo, Norway</title><link>https://blog.ehn.nu/2009/04/free-seminar-on-visual-studio-team-system-2010-in-oslo-norway/</link><pubDate>Wed, 22 Apr 2009 21:14:12 +0000</pubDate><guid>https://blog.ehn.nu/2009/04/free-seminar-on-visual-studio-team-system-2010-in-oslo-norway/</guid><description>&lt;p&gt;On May 20th &lt;a href="http://geekswithblogs.net/terje"&gt;Terje&lt;/a&gt; and &lt;a href="http://twitter.com/Nitell"&gt;Mikael&lt;/a&gt; from my company (&lt;a href="http://www.osiris.no"&gt;Osiris Data&lt;/a&gt;) will hold a seminar in Oslo, Norway where they will run through all (?) the new cool features in VSTS 2010. Expect to see demos on the new functionality for manual and UI testing, branch visualization, hierarchical work items, gated check-ins and lots of other stuff.&lt;/p&gt;
&lt;p&gt;VSTS 2010 is a really huge release and if the rumours are true, the Beta 1 will be released in May, hopefully before the seminar :-)&lt;/p&gt;</description></item></channel></rss>