What is deps.json, and how do I make it use relative paths?

后端 未结 4 1895
南旧
南旧 2020-12-25 10:27

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

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-25 10:48

    *.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:

    1. Remove preserveCompilationContext from each Company.* library that your app references.
    2. If that does not work, also remove preserveCompilationContext from your main app.

    There is an involved conversation here: https://github.com/aspnet/Mvc/issues/5141

提交回复
热议问题