---
title: "Adding pre and post build events for VB.Net projects"
url: "https://osherove.com/blog/2004/9/3/adding-pre-and-post-build-events-for-vbnet-projects.md"
canonical: "https://osherove.com/blog/2004/9/3/adding-pre-and-post-build-events-for-vbnet-projects.html"
published: "2004-09-03T18:16:00"
updated: "2004-09-03T18:16:00"
tags: [".Net Quotations"]
author: "Roy Osherove"
description: "Avner told me the other day that he found a way to add pre and post build events supports to VB.Net projects (which is a shame that they don't have them as default like C#). His way was to use the Macro capability of…"
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/"
---

# Adding pre and post build events for VB.Net projects

By Roy Osherove September 3, 2004 In [.Net Quotations](https://osherove.com/blog/category/net-quotations)

**Historical article** · Originally published September 3, 2004; technical details may be outdated.

[Avner](http://weblogs.asp.net/avnerk/) told me the other day that he [found a way  to add pre and post build events supports to VB.Net projects](http://weblogs.asp.net/avnerk/archive/2004/09/03/225251.aspx) (which is a shame that they don't have them as default like C#). His way was to use the Macro capability of Vs.Net and hook to build events. He wanted to make an add-in that does that. Turns out there is a working sample of exactly such a thing, and much more, from Microsoft. Yep - get all that and more at the [Visual Studio .NET 2003 Automation Samples](http://www.microsoft.com/downloads/details.aspx?FamilyId=3FF9C915-30E5-430E-95B3-621DCCD25150&displaylang=en) page. Thanks for finding this link Avner!

## More in .Net Quotations

[All posts in .Net Quotations](https://osherove.com/blog/category/net-quotations)

- Sep 11, 2004

    ### [Organization Patterns of Agile Software Development](https://osherove.com/blog/2004/9/11/organization-patterns-of-agile-software-development.html)

- Sep 7, 2004

    ### [Implementing CollectionBase the right way](https://osherove.com/blog/2004/9/7/implementing-collectionbase-the-right-way.html)

- Sep 3, 2004

    ### [Services without components on a pre-SP2 XP machine?](https://osherove.com/blog/2004/9/3/services-without-components-on-a-pre-sp2-xp-machine.html)

- Jul 17, 2004

    ### [Omer is doing some serious blogging](https://osherove.com/blog/2004/7/17/omer-is-doing-some-serious-blogging.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/
