AssemblyMetadata - Build Time with Source Code Generators
.NET has for some time source code generators: a mechanism with which it is possible to generate source code at compile time, as has been known, for example, with DSL approaches since ~2005.
However, source code generators are much simpler and, above all, much more performant - and are also very suitable for significantly simplifying build tooling mechanisms.
I used the source code generators to embed the current build time as ISO8601 into the assembly - for example to use it as an info dump. I created this as a NuGet package and published it on GitHub:
AssemblyMetadata on GitHub
Autor
Benjamin Abt
Ben is a passionate developer and software architect and especially focused on .NET, cloud and IoT. In his professional he works on high-scalable platforms for IoT and Industry 4.0 focused on the next generation of connected industry based on Azure and .NET. He runs the largest german-speaking C# forum myCSharp.de, is the founder of the Azure UserGroup Stuttgart, a co-organizer of the AzureSaturday, runs his blog, participates in open source projects, speaks at various conferences and user groups and also has a bit free time. He is a Microsoft MVP since 2015 for .NET and Azure.