python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Source Generator Testing
I'm trying to develop a source generator that I can theoretically add to my projects, and for the given project have it find classes that are marked up with a specific attribute, and then build a corr...
Ronnyek
Votes: 0
Answers: 1
How does the compiler pipeline correspond to Incremental Source Generation?
I'm having trouble understanding the Roslyn documentation and fiting it with what I see when working on an Incremental Source Generator.
https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/comp...
BodzioSamolot
Votes: 0
Answers: 1
How to properly reference classes output by Source Generators in C#
A .NET 5 console app uses an Analyzer that includes a Source Generator to generate test cases as classes. These are output to a temporary folder like this:
<PropertyGroup>
<OutputType>Exe...
Frank
Votes: 0
Answers: 0
Source generator with physical files on disk causing ambiguity
I'm working on a project where I want to generate cs classes based on JSON file that defines a set of exceptions. I looked into different options and trying source generator now. In my project, I want...
Khaled Saleh
Votes: 0
Answers: 1