---
title: "Macro - Workaround for VS 2005 unit testing build problem"
url: "https://osherove.com/blog/2006/12/10/macro-workaround-for-vs-2005-unit-testing-build-problem.md"
canonical: "https://osherove.com/blog/2006/12/10/macro-workaround-for-vs-2005-unit-testing-build-problem.html"
published: "2006-12-10T00:13:21"
updated: "2006-12-10T00:13:21"
tags: ["Agile", "Agile Related", "Team System", "Unit Testing"]
author: "Roy Osherove"
description: "Sondre has a nice workaround for a very annoying problem with VS 2005 Unit Tests (aka Team Test) - When you run unit tests, the \"Build\" action is not performed on the unit testing project by default, so you have to…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Macro - Workaround for VS 2005 unit testing build problem

By Roy Osherove December 10, 2006 In [Agile](https://osherove.com/blog/category/agile), [Agile Related](https://osherove.com/blog/category/agile-related), [Team System](https://osherove.com/blog/category/team-system), [Unit Testing](https://osherove.com/blog/category/unit-testing)

**Historical article** · Originally published December 10, 2006; technical details may be outdated.

[Sondre has a nice workaround](http://fanms.com/blogs/sondre/archive/2006/12/06/Easier-TDD-with-Visual-Studio-2005-_2800_Macro_2900_.aspx) for a very annoying problem with VS 2005 Unit Tests (aka Team Test) - When you run unit tests, the "Build" action is not performed on the unit testing project by default, so you have to manually invoke the build - which you keep forgetting to do. Annoying! Sondre's workaround will run a build on the current project, then build every project with the word "Test" contained inside it after the build is done.

[Here's a direct link](http://fanms.com/files/folders/75/download.aspx) to the actual macro, but you will find detailed instructions on how to use it in [Sondre's post](http://fanms.com/blogs/sondre/archive/2006/12/06/Easier-TDD-with-Visual-Studio-2005-_2800_Macro_2900_.aspx).

## More in Agile

[All posts in Agile](https://osherove.com/blog/category/agile)

- Dec 23, 2006

    ### [The Agile Ambient Orb](https://osherove.com/blog/2006/12/23/the-agile-ambient-orb.html)

- Dec 14, 2006

    ### [Catch me talking Agile at the Israeli .NET Architects user group](https://osherove.com/blog/2006/12/14/catch-me-talking-agile-at-the-israeli-net-architects-user-gr.html)

- Dec 9, 2006

    ### [Video: Implementing Continuous Integration: With and Without Team System](https://osherove.com/blog/2006/12/9/video-implementing-continuous-integration-with-and-without-t.html)

- Nov 17, 2006

    ### [Scrum Certifications are Problematic](https://osherove.com/blog/2006/11/17/scrum-certifications-are-problematic.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
