Brain Candy Sale

Special Offers see all

Enter to WIN a $100 Credit

Subscribe to
for a chance to win.
Privacy Policy

Visit our stores

    Recently Viewed clear list

    Q&A | Yesterday, 9:00am

    Tyler Oakley: IMG Powell’s Q&A: Tyler Oakley

    Describe your book. As a YouTuber, my occupation is to share my life with anyone who wants to listen. It's a dream job that I've had for almost... Continue »
    1. $16.80 Sale Hardcover add to wish list


      Tyler Oakley 9781501117695


This item may be
out of stock.

Click on the button below to search for this title in other formats.

Check for Availability
Add to Wishlist

Other titles in the Addison-Wesley Microsoft Technology series:

Practical Code Generation in .Net: Covering Visual Studio 2005, 2008, and 2010 (Addison-Wesley Microsoft Technology)

Practical Code Generation in .Net: Covering Visual Studio 2005, 2008, and 2010 (Addison-Wesley Microsoft Technology) Cover


Synopses & Reviews

Publisher Comments:

“Once this skill is within your everyday comfort zone, it will give your productivity a boost and increase your value to your team. I encourage you to add the techniques outlined in this book to your toolset and to use them to develop your own workbench of generative tools. In doing so, I’m confident you’ll improve your capabilities, and what’s more, have fun doing so.”

–From the Foreword by Gareth Jones, Developer Architect, Visual Studio®, Microsoft


Enlist Visual Studio’s Built-in Code Generation Tools to Write Better Software Faster


Automatic code generation can dramatically increase your productivity, improve code quality and maintainability, promote reuse, and help you extend best practices throughout your development organization. .NET and Visual Studio contain many powerful, code-generation tools--and this book shows you how to succeed with all of them. With Practical Code Generation in .NET , spend less time writing monotonous, repetitive code--leaving more time to address troublesome areas!


Microsoft MVP Peter Vogel covers code generation with Visual Studio 2010, 2008, and 2005, as well as all recent versions of .NET, including .NET 4.0. You’ll learn when enlisting code generation makes sense and how to design solutions that build on the skills and resources you already have.


Writing for experienced programmers, Vogel shows how to generate reliable code using procedural code, Visual Studio add-ins, XML, configuration files, and more--including Microsoft’s innovative CodeDOM technology for generating code in multiple languages. He brings everything together in three complete, chapter-length case studies.


Coverage includes

•  Understanding the structure of .NET code-generation solutions and best practices for architecting them

•  Creating Visual Studio add-ins that quickly integrate code generation into day-to-day activities

•  Using objects and methods to add or remove project components

•  Using text insertion to generate code using any tool--even standard string handling functions

•  Working with the specific features of C#, Visual Basic .NET, and ASP.NET

•  Generating more concise code with .NET’s new Text Template Transformation Toolkit (T4)

•  Building code-generation solutions with Visual Studio templates, attributes, and custom tools

•  Distributing code-generation solutions

About the Author

Peter Vogel is a Principal in PH & V Information Services, which specializes in .NET development. He has built systems for Exxon, Bayer AG, Volvo, and the Canadian Imperial Bank of Commerce, and wrote the ASP.NET 1.0, 2.0, 3.5, and 4.0 courses for Learning Tree International. Vogel has been honored as a Microsoft MVP, presents frequently at leading .NET conferences, and is the ASP.NET columnist for Visual Studio magazine. He is author of Visual Basic 6.0 Object and Component Handbook.

Table of Contents


Chapter 1. Introducing Code Generation


PART I: Tools

Chapter 2. Integrating with Visual Studio

Chapter 3. Manipulating Project Components

Chapter 4. Modifying Code in the Editor

Chapter 5. Supporting Project-Specific Features

Chapter 6. Generating Language-Neutral Code

Chapter 7. Generating Code from Templates with T4

Chapter 8. Other Tools: Templates, Attributes, and Custom Tools


PART II: Case Studies

Chapter 9. Case Study: Generating a Connection String Manager

Chapter 10. Case Study: Generating Validation Code

Chapter 11. Case Study: Generating Data-Conversion Code


PART III: Appendixes

Appendix A: Generating Menu Names

Appendix B: Options Dialog Categories, Subcategories, and Properties

Appendix C: A Code-Generation Framework

Appendix D: Distributing Code-Generation Solutions

Product Details

Addison-Wesley Professional
Programming Languages - General
Vogel, Peter
Subject: framework
Code generators.
Software Engineering - Programming and Languages
Edition Description:
Trade paper
Addison-Wesley Microsoft Technology Series
Publication Date:
April 2010
Grade Level:
Professional and scholarly
9.06x7.14x1.13 in. 1.78 lbs.

Related Subjects

Children's » Science Fiction and Fantasy » General
Computers and Internet » Programming » Microsoft Programming
Computers and Internet » Software Engineering » Programming and Languages
Travel » General

Practical Code Generation in .Net: Covering Visual Studio 2005, 2008, and 2010 (Addison-Wesley Microsoft Technology)
0 stars - 0 reviews
$ In Stock
Product details 375 pages Addison-Wesley Professional - English 9780321606785 Reviews:
  • back to top


Powell's City of Books is an independent bookstore in Portland, Oregon, that fills a whole city block with more than a million new, used, and out of print books. Shop those shelves — plus literally millions more books, DVDs, and gifts — here at