xaferoxafero.hashnode.dev·Apr 6, 2024Generating C# code programmaticallyRecently, while creating some experimental C# source code generators (xafero/csharp-generators), I was just concatenating strings together. Like you do, you know, if things have to go very quickly. If you have a simple use case, use a formatted multi...DiscussC#
Gilles TOURREAUProgilles.tourreau.fr·Dec 5, 2023Strengthening Moq based unit tests with PosInformatique.Moq.AnalyzersAs a passionate advocate for robust unit testing and code quality, I've invested heavily in leveraging the Moq library within my .NET projects. To ensure reliability and catch potential errors early, I developed a .NET analyzer tool specifically tail...Discuss·10 likes·58 reads.NET
Yassine FERNANEProfrntech.fr·Nov 16, 2023Source Generators par l'exemple : IIncrementalGeneratorEncore les Source Generators, il en a pas assez ? Alors, oui, c'est un sujet assez vaste. Et à vrai dire, ma roadmap ne fait que s'allonger à mesure que je creuse le sujet. J'envisage encore d'aborder les tests sur notre code généré, le debugging et...Discuss·1 like·89 reads.Net avancésourcegenerators
Allister Beharryallisterb.hashnode.dev·Aug 11, 2023Stratis DevEx: Getting started with C# smart contract static analysis and the portable graphical IDE extensionhttps://youtu.be/6GPGNkuSs0M Introduction In our first article on Stratis DevEx we looked at the Stratis .NET smart contract platform and the overall DevEx project goal of achieving parity between Ethereum smart contract development tools like Remi...Discuss·96 readsdotnet
Yassine FERNANEProfrntech.fr·Aug 5, 2023Les Source Generators par l'exemple : ISourceGeneratorDans la première partie de cette série de billet sur les Source Generators nous avons défini ce qu'ils étaient et dans quel cas nous pourrions les utiliser, sans donner d'exemple de code. C'était volontaire, pour éviter d'avoir un article trop long. ...Discuss·1 like·89 reads.Net avancésourcegenerators
Yassine FERNANEProfrntech.fr·Jul 24, 2023Introduction aux Source GeneratorsPour ce billet, j'ai eu l'envie d'aborder le sujet des Source Generators. En effet, j'ai dans l'idée de créer un petit package pour générer automatiquement des DTOs, ainsi que le mapping entre domain model et DTOs. Et pourquoi pas aller plus loin en ...Discuss·2 likes·62 reads.Net avancésourcegenerators
Denis Ekartdenace.dev·Mar 1, 2023Testing Roslyn Analyzers and Code FixesIn the previous article, we implemented a Roslyn analyzer and code fix. This article will focus on various ways to properly test them. We will leverage existing test libraries and explore the means to write one ourselves using Roslyn workspaces. This...Discuss·779 readsExploring Roslynroslyn
Denis Ekartdenace.dev·Feb 14, 2023Fixing Mistakes With Roslyn Code FixesIn this part of the series, we will focus on creating a code fix provider that will fix a diagnostic we reported with empty lines analyzer, a Roslyn analyzer we implemented in the previous article. Storytime! A week ago, we had a brilliant idea to i...Discuss·10 likes·634 readsExploring Roslynroslyn
Denis Ekartdenace.dev·Feb 5, 2023Getting Started With Roslyn AnalyzersThis article will focus on the most basic setup needed to create and use a Roslyn analyzer. Starting with an empty solution, we will go through the necessary configuration to develop and utilize a Roslyn analyzer. The last article ended with the wor...Discuss·1.5K readsExploring Roslynroslyn