В качестве воспроизводимого примера приведем пример >
Код: Выделить всё
public static class Program {
public static Main(string[] args) {
Console.WriteLine(args[1]);
Console.WriteLine("test");
}
}
Код: Выделить всё
Код: Выделить всё
@echo off
dotnet build -c Release
Obfuscar.console obfuscar.xml
Код: Выделить всё
ilc -r ./ --systemmodule System.Private.CoreLib "BUILD.dll" -o BUILD.exe Код: Выделить всё
Error: One or more errors occurred. (Main() has parameters, but the class library doesn't support them)
System.AggregateException: One or more errors occurred. (Main() has parameters, but the class library doesn't support them)
---> System.Exception: Main() has parameters, but the class library doesn't support them
Подробнее здесь: https://stackoverflow.com/questions/790 ... n-has-para
Мобильная версия