I\'m setting up an ASP.NET Core project on TeamCity. The binaries it builds crash on startup on other machines. The error message shows that it is looking for dlls in paths
*.deps.json comes from preserveCompilationContext.
Preserving the compilation context is useful for runtime compilation (i.e. just-in-time compilation) and especially for compiling views. It is not usually useful for libraries. To fix your problem:
preserveCompilationContext from each Company.* library that your app references.preserveCompilationContext from your main app.There is an involved conversation here: https://github.com/aspnet/Mvc/issues/5141