.NET Core 2 Console App Dependencies Issue on Azure

北慕城南 提交于 2019-12-02 00:55:34

Not quite sure of the WebJobs specification, but you should be able to use dotnet publish --self-contained -r win-x64 -c Release to generate executable and its dependencies. Zip them up and you should be able to deploy to Azure.

There is really no need to modify your csproj like you did.

Besides, you can use .NET IL Linker to shrink the size of the generated folder.

Reference

https://docs.microsoft.com/en-us/dotnet/core/deploying/deploy-with-cli#self-contained-deployment-with-third-party-dependencies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!