Файлы .csproj находятся в соответствующих папках, папки расположены рядом.
Это содержимое анализатора .csproj:
Код: Выделить всё
netstandard2.0
false
enable
true
Latest
true
Код: Выделить всё
[Generator]
public class PrivateConstructorGenerator : IIncrementalGenerator
{
public void Initialize(IncrementalGeneratorInitializationContext context)
{
Debugger.Break(); // Here for debug, is never run, no traces are logged, no generated files under obj/
var classDeclarations = context.SyntaxProvider
.CreateSyntaxProvider(
predicate: static (s, _) => IsClassWithAttribute(s),
transform: static (ctx, _) => GetSemanticTargetForGeneration(ctx))
.Where(static m => m is not null);
[...]
Код: Выделить всё
OutputType="Analyzer"
ReferenceOutputAssembly="false"/>
Я не понимаю, что делаю не так; все, что я нахожу в документах/вопросах, указывает на то, что это все, что требуется. Буду признателен за совет, спасибо.
Подробнее здесь: https://stackoverflow.com/questions/793 ... tor-to-run
Мобильная версия