tips (en)‎ > ‎

visual studio

Could Not Load File or Assembly in Release Configuration

  • Add a reference by browsing and selecting the corresponding dll. It's a dll not available in nuget package manager.
  • The project builds and executes fine in Debug Mode
  • The project fails to build or publish in Release Mode
  • Go to Project Properties
  • Build. Select Release Configuration
  • Output section
  • Generate serialization assembly: Disable