Writing Open Source Software in .NET - With BenchmarkDotNet, Roslyn Source Generators and MSBuild Multitargeting
Event:.NET User Group Regensburg
Type:Talk
Date:December 10, 2018
Duration:2h
Location:Regensburg, Germany
Language:German
In this talk, we explore my open source library Light.GuardClauses and how I optimized certain features using Roslyn and source generators, BenchmarkDotNet, and the MSBuild multi-targeting system.
Event Details
In June 2016, the open-source library Light.GuardClauses was released for the first time. In this talk, the author shares insights and behind-the-scenes experiences from working in the open-source ecosystem of Microsoft’s .NET platform.
After a brief introduction to what Light.GuardClauses actually does, we’ll dive into several current and practical topics:
- How to use the new csproj format introduced with MSBuild 15 to target multiple frameworks from a single project
- How to leverage the open-source C# compiler Roslyn to automatically generate and validate code
- How the library’s performance was optimized using BenchmarkDotNet