Код: Выделить всё
The specified RuntimeIdentifier 'win10-x64' is not recognized. See https://aka.ms/netsdk1083 for more information.
< /code>
Я отредактировал строки файла msixwin10x64.pubxml в каталоге Publishprofile: < /p>
win10-x64
< /code>
to 'win-x64' и < /p>
net9.0-windows10.0.19041.0
< /code>
to 'net9.0', что исправило проблему. /p>
Program does not contain a static 'Main' method suitable for an entry point
< /code>
Я попытался добавить фиктивный класс с помощью основного метода, а проект сообщил: < /p>
Program has more than one entry point defined. Compile with /main to specify the type that contains the entry point.
Подробнее здесь: https://stackoverflow.com/questions/794 ... c-main-met