Они ключевые части моей основной программы выглядят так :
Код: Выделить всё
namespace ArincParser
{
public static partial class Program
{
public static void Main(string[] args)
{
PrintHello();
}
static partial void PrintHello();
}
}
Код: Выделить всё
namespace VulcanGenerator
{
[Generator]
public class DummyGenerator : ISourceGenerator
{
public void Execute(GeneratorExecutionContext context)
{
context.AddSource("Dummy.g.cs", @"
namespace ArincParser;
public static partial class Program
{
public static partial void PrintHello()
{
Console.WriteLine(""HELLO\n"");
}
}
"
);
}
public void Initialize(GeneratorInitializationContext context)
{
}
}
}
Код: Выделить всё
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"/>
Код: Выделить всё
netstandard2.0
true
all
runtime; build; native; contentfiles; analyzers; buildtransitive
Не знаю, чего мне не хватает и как продолжить отладку. Любая помощь, которая может быть оказана, будет оценена по достоинству. Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/783 ... -generated
Мобильная версия