Practical Code Generation in .NET
Covering Visual Studio 2005, 2008, and 2010
- 504 stránek
- 18 hodin čtení
Once this skill becomes part of your routine, it will enhance your productivity and increase your value to your team. The techniques outlined will help you develop a workbench of generative tools, improving your capabilities while making the process enjoyable. Automatic code generation can significantly boost productivity, enhance code quality, and promote best practices across your development organization. This guide demonstrates how to effectively utilize the powerful code-generation tools available in .NET and Visual Studio. With insights from Microsoft MVP Peter Vogel, the book covers code generation for Visual Studio 2010, 2008, and 2005, as well as .NET 4.0. You'll discover when to implement code generation and how to design solutions that leverage your existing skills and resources. Aimed at experienced programmers, Vogel explains how to generate reliable code using procedural methods, Visual Studio add-ins, XML, and more, including Microsoft’s CodeDOM technology for multi-language code generation. The content includes understanding the structure of .NET code-generation solutions, creating Visual Studio add-ins for seamless integration, and utilizing objects and methods to manage project components. Additional topics cover text insertion for code generation, specific features of C#, Visual Basic .NET, and ASP.NET, as well as generating concise code with .NET’s Text Template Transformation Toolkit (T4) and building




