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 to generate C# code from a SyntaxFactory CompilationUnitSyntax?
I am building a simple AST using the code below.
output = SF
.CompilationUnit()
.WithMembers(SF.SingletonList<MemberDeclarationSyntax>(SF.ClassDeclaration("Class1")))
.ToFullStri...
Corey Alix
Votes: 0
Answers: 1
c# code analyzer test is not working, but test is correct
I'm writing a simple code analyzer and fixer using the Microsoft template. I want to fix nested if statements in else statement. Example:
using System;
using System.Runtime.InteropServices;
namespace...
Kre4
Votes: 0
Answers: 1
How to make c# analyzer from CLI, to warn on usage of ! operator
Ok, as usual the msft docs are utterly useless for me. Here is my Q:
How can I make an analyzer using the CLI (dotnet 6.0 SDK on linux) and have it run when I dotnet build other projects, and have it...
KP99
Votes: 0
Answers: 1