. NET Core Publi sh Ошибки компиляции - PullRequest
0 голосов
/ 04 мая 2020

У меня есть проект. NET Core 2.2, который прекрасно вписывается в конфигурацию Debug и Release. Однако сборка завершается неудачно, когда я пытаюсь опубликовать sh проект.

Startup.cs(26,16): Error CS0246: The type or namespace name 'IConfiguration' could not be found (are you missing a using directive or an assembly reference?) Startup.cs(35,39): Error CS0246: The type or namespace name 'IServiceCollection' could not be found (are you missing a using directive or an assembly reference?) Startup.cs(29,24): Error CS0246: The type or namespace name 'IConfiguration' could not be found (are you missing a using directive or an assembly reference?) Controllers\ConsentController.cs(37,13): Error CS0246: The type or namespace name 'ILogger<>' could not be found (are you missing a using directive or an assembly reference?) Controllers\ConsentController.cs(30,26): Error CS0246: The type or namespace name 'ILogger<>' could not be found (are you missing a using directive or an assembly reference?)

Я попытался очистить решение. Кто-нибудь еще видел подобное поведение?

1 Ответ

1 голос
/ 04 мая 2020

Можете попробовать через терминал?

do tnet publi sh

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...