Я добавил маршрут к .well-known< /code> вот так:
Код: Выделить всё
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), @".well-known")),
RequestPath = new PathString("/.well-known"),
ServeUnknownFileTypes = true // serve extensionless file
});
Я пробовал добавить в него файл, а также отредактировать csproj:
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/431 ... p-net-core