Create a class with .NET Core and Roslyn

After my post first post on: Code Generation I decided to go a bit further, so today we’ll Create a class with .NET Core and Roslyn and write the output to the console. Let’s see: 1. Create the application# Open a command prompt and run 1 md roslyn.create.class 2 cd roslyn.create.class 3 dotnet new 4 dotnet restore 5...

.NET Core, Roslyn and Code Generation

For ages I’ve been using T4 templates as main tool for code generation and scaffolding, but now that I’m an absolute fan of Visual Studio Code and .Net Core I need to explore other options such as Yeoman, Scripty and Roslyn. This post is just the result of my first and simplest experiment with .Net Core, Roslyn and...