Я пытаюсь конвертировать бота v4 в кастомный навык. Бот со всеми файлами работает как положено. Но в нем отсутствует конечная точка / api / skill / manifest , необходимая для подключения навыка к виртуальному помощнику.
обновление вопроса
После внесения изменений вФайл BotController.cs, который выдает мой бот post 500 directline.PostACtivity error
До редактирования файл BotControler.cs был таким
[Route("api/messages")]
[ApiController]
public class BotController : ControllerBase
{
private readonly IBotFrameworkHttpAdapter Adapter;
private readonly IBot Bot;
public BotController(IBotFrameworkHttpAdapter adapter, IBot bot)
{
Adapter = adapter;
Bot = bot;
}
[HttpPost]
public async Task PostAsync()
{
// Delegate the processing of the HTTP POST to the adapter.
// The adapter will invoke the bot.
await Adapter.ProcessAsync(Request, Response, Bot);
}
}
После такого изменения бот не отвечает
[ApiController]
public class BotController : SkillController
{
public BotController(IServiceProvider serviceProvider, BotSettingsBase botSettings)
: base(serviceProvider, botSettings)
{ }
}
Здесь также обнаружена ошибка BotController.cs
![enter image description here](https://i.stack.imgur.com/WTUak.png)