When you deploy the asp.net core 2.0.0 project, the following dependency error appears: Error: An assembly specified in the application dependencies manifest (xxx.deps.json) was not found: package: 'MailKit', version: '2.0.1' path : 'lib / netstandard2.0 / MailKit.dll'
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>into thePropertyGroupsection into the project file * .csproj. - Alexander Petrov