Inside the Microsoft Build Engine - Hashimi_ Sayed Ibrahim.pdf

(21702 KB) Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Praise for
Inside the Microsoft Build Engine: Using MSBuild
and Team Foundation Build, Second Edition
“Inside the Microsoft Build Engine: Using MSBuild and Team Foundation Build is a practical book
covering all the essentials of MSBuild and the Team Foundation Server build system. But what
makes the book extra valuable is its focus on real-life scenarios that often are hard to ind a good,
working solution for. In fact there is information in the book you’re unlikely to ind anywhere else.
With the second edition of the book, the authors ill the gaps again, this time by covering the
new TFS build worklow technology as well as MSBuild 4.0. It is an invaluable book that saves lots
of time whenever you work with any aspect of automated builds in Visual Studio and TFS. This is
a book I’ll make sure to have with me all the time!”
-Mathias Olausson, ALM Consultant, QWise/Callista, Sweden
“As an ALM Consultant I come across many teams that are struggling with their build tools and
processes. The second edition of Sayed and William’s book is the perfect answer for these teams.
Not only will it show you how to get your builds back on track, I challenge anyone not to be able
to use the information in this book to improve their existing builds. It includes updated content
focusing on the new Visual Studio 2010 release and is packed with practical examples you could start
using straight away. You simply must include it in your technical library.”
-Anthony Borton, Microsoft Visual Studio ALM MVP, Senior ALM trainer/consultant,
Enhance ALM Pty Ltd, Australia
“The irst edition of Inside the Microsoft Build Engine was a brilliant look at the internals of MSBuild,
so it’s fantastic to see Sayed and William updating it with all the new features in MSBuild 4.0 and also
delving into the Team Foundation Server 2010 worklow based build process. It’s also a real pleasure
to see deployment with MSDeploy covered so that you can learn not only how to automate your
builds, but also how to automate your deployments. A great book. Go out and get a copy now.”
-Richard Banks, Visual Studio ALM MVP and Principal Consultant with Readify, Australia
“Did you know about the TaskFactory in MSBuild? If not, you’re not alone - but you will know
after reading this book. This book provides insights into the current technologies of the Microsoft
Build Engine. Starting with background information about MSBuild, it covers also the necessary
basics of Worklow Foundation which are applied during the description of advanced topics
of Team Foundation Build. The level of detail is targeted to experienced build masters having
a development background - even the overview is stuffed with new information, references, hints
and best practices about MSBuild. Samples are provided as step-by-step guidance easy to follow
inside Visual Studio. What I found astonishing is the practical focus of the samples such as web
project deployment. I could have used at least half of them in my development projects! Simply
put: A must read for all build experts that have to deal with MSBuild and the Team Foundation
Server build engine who are not only interested in solutions but also background information!”
-Sven Hubert, AIT TeamSystemPro Team, Consultant, MVP Visual Studio ALM – www.tfsblog.de
i
ii
Praise for
“The reason that I only own one MSBuild/Team Build book is because there is no need for another.
This book covers both topics from soup to nuts and is written in a way that allows new users to ramp
up quickly. The real-world code examples used to illustrate the topics are useful in their own right.
The Second Edition covers all of the changes in MSBuild 4.0 and all of the newness that is Team Build
2010. This is my ‘go to’ guide, and the only book on these topics that I recommend to my clients.”
-Steve St Jean, Visual Studio ALM MVP, DevProcess (ALM) Consultant with Notion
Solutions, an Imaginet Company
“Whether you consider yourself experienced or you are taking your irst steps in the build and
automation arena, this 2 nd edition will prove a valuable read. Skilled MSBuild users will do well
to remind themselves of the intricacies of MSBuild and learn of the new 4.0 features whilst
novices are taken on a steady paced journey to quickly acquire the knowledge and conidence
in developing successful solutions. This edition brings additional value to our ever changing
profession in discussing MSDeploy and the new Windows Worklow 4.0 based Team Foundation
Build. Regardless of your experience, I wholeheartedly recommend this book.”
-Mike Fourie, Visual Studio ALM MVP and ALM Ranger, United Kingdom
“The irst edition of this book had a perfect balance between a tutorial and a reference book.
I say this as I used the book irst to kick start my MS Build knowledge and then as reference
whenever I needed information on some advanced topic. My main interest is Team Foundation
Server and I learned MS Build more from necessity than an urge, hence I was very curious to
see the 2 nd edition. Sayed and William did not disappoint me - the four chapters on Team Build
cover all points needed to customize builds. As a bonus there are three whole chapters on web
deployment which is a recurrent request I hear during my consulting and presentations on TFS.
If I had to summarize my opinion in a single sentence, I would just say `Buy the book, you won’t
regret it’.”
-Tiago Pascoal, Visual Studio ALM MVP and Visual Studio ALM Ranger, Portugal
“Reliable and repeatable build processes are often the Achilles’ heel of development teams. Often
this is down to a lack of understanding of the underlying technologies and how they it together.
No matter which Continuous Integration (CI) tool you may be using, this book provides the
fundamental information you need to establish solid build and deployment engineering practices
and demystiies the various Microsoft technologies used along the way. This book is the essential
reference for any team building software on the Microsoft.NET platform.”
-Stuart Preston, Visual Studio ALM Ranger and Chief Technology Oficer at RippleRock
“Successfully deploying application is one of the big challenges in today’s modern software
development. As applications become more complex to develop, they also become more complex
to deploy. This well-written book provides us a deep-dive on how developers can improve
their productivity and accomplish the business needs using Microsoft deployment technology:
MSBuild, Web Deploy and Team Build. Microsoft provides us the right tools, and this book
provides us the information we need to extract real value from these tools.”
-Daniel Oliveira, MVP, Visual Studio ALM Ranger and ALM Consultant at TechResult
879311482.001.png
PUBLISHED BY
Microsoft Press
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399
Copyright © 2010 by Sayed Hashimi and William Bartholomew
All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any
means without the written permission of the publisher.
Library of Congress Control Number: 2010940848
ISBN: 978-0-7356-4524-0
Printed and bound in the United States of America.
Microsoft Press books are available through booksellers and distributors worldwide. For further information
about international editions, contact your local Microsoft Corporation office or contact Microsoft Press
International directly at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments
to mspinput@microsoft.com.
Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty/
Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property
of their respective owners.
The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and
events depicted herein are ictitious. No association with any real company, organization, product, domain name,
e-mail address, logo, person, place, or event is intended or should be inferred.
This book expresses the author’s views and opinions. The information contained in this book is provided without
any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or
distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by
this book.
Acquisitions Editor: Devon Musgrave
Developmental Editor: Devon Musgrave
Project Editor: Iram Nawaz
Editorial Production: S4Carlisle Publishing Services
Technical Reviewer: Marc H. Young
Cover: Tom Draper Design
Body Part No. X17-29997
I would like to dedicate this book to my parents, Sayed A. Hashimi and Sohayla Hashimi, as well as my
college advisor, Dr. Ben Lok. My parents have, over the course of the years, sacriiced a lot to give us the
opportunity for us to be able to achieve our dreams. I can only hope that they are proud of the person
that I have become. When I irst met Ben, I wanted to get into a research program that he had going.
Thankfully, he was willing to accept me. Ben helped show me how rewarding hard work can be, and he
has enabled me to succeed in my career. When I look back on inluences in my life, who are not relatives,
he ranks at the top of my list. I am sure that I wouldn’t be where I am had it not been for him.
—Sayed Ibrahim Hashimi
To my mother, Rosanna O’Sullivan, and my father, Roy Bartholomew, for their unfaltering support in all
my endeavors.
—William Bartholomew
I would like to dedicate this book to my parents, Syama Mohana Rao Adharapurapu and Nalini
Adharapurapu, my brother, Raghavendra Adharapurapu, my sister, Raga Sudha Vijjapurapu, and my
wife, Deepti Ramakrishna.
—Pavan Adharapurapu
I dedicate this book to my wife, Samantha, and my daughters, Amelie and Madeline, as well as my
parents, Leonea and Craig. Their love has no boundaries and their support has made me believe that
I can accomplish anything.
—Jason Ward
Zgłoś jeśli naruszono regulamin