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

后端 未结 4 1896
南旧
南旧 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 11:04

    After a full search finally found my solution, this was my case: - only happens when run

    dotnet publish

    so in order to solve this, edit your csproj and make sure to have this configuration.

    This apply to webapi netcoreapp 2.0

    
        false
        false
    
    

    this also will solve problems related to

    "error CS0246: The type or namespace name 'System' could not be found"

    ref.: https://github.com/aspnet/MvcPrecompilation/issues/162 https://github.com/dotnet/dotnet-docker/issues/279

提交回复
热议问题