Проект собирается, но не запускается - как отловить при сборке?
От: senglory  
Дата: 07.10.21 13:18
Оценка:
Есть проект (NET 4.6.1), собранный из 100500 разных подпроектов нугетов и пр. хлама. При сборке в студии ошибок нет, но при запуске его в IIS Express я получаю такую хрень в броузере:

Server Error in '/' Application.
Could not load file or assembly 'Avro, Version=1.10.0.0, Culture=neutral, PublicKeyToken=b1248d7eeb9d0814' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Avro, Version=1.10.0.0, Culture=neutral, PublicKeyToken=b1248d7eeb9d0814' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 16:
Line 17: // Initialize Dependency Injection and iHerb Logger
Line 18: new DependencyInjection().WebApi();
Line 19: log4net.Config.XmlConfigurator.Configure();
Line 20:



Вот как такую радость можно отловить при сборке проекта перед его публикацией? Интересует какое-то скриптовое решение, к-рое можно добавить как post-build step в студии или в Jenkins.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.