Summary
In this chapter, we explored the technical setup of a Roslyn compiler extension project, covering the key moving parts of a Roslyn compiler extension. We discussed the various ways in which a Roslyn compiler extension can modify C# code.
We also delved into the process of packaging a Roslyn compiler extension for reuse, exploring the different packaging options available and discussing best practices for making your extension easy to consume by other developers.
In the next chapter, we will focus on generating code with Roslyn compiler extensions. We’ll explore techniques for generating new code based on existing code, and we’ll discuss best practices for ensuring that the generated code is of high quality and conforms to established conventions and standards. With the knowledge gained in this chapter and the next, you’ll be well on your way to building powerful and flexible Roslyn compiler extensions that can significantly enhance the functionality...