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
2. Replace the contents of project.json
3. Replace the contents of Program.cs
4. Run the application

Get a copy of the code here: https://github.com/cmendible/dotnetcore.samples/tree/master/roslyn.create.class

Hope it helps

1 thought on “Create a class with .NET Core and Roslyn

Leave a Reply

Your email address will not be published. Required fields are marked *