How to include asp.net core 2 dependencies in publish

Viewed 1110

I have an asp.net core application. I publish the project to a folder and then sync the files to a linux production server.

All was working fine with asp.net core 1.x.

After upgrading to 2.0, using the Microsoft.AspNetCore.All metapackage, the asp.net core dependencies are not published to the output. I use <RuntimeIdentifiers>debian-x64</RuntimeIdentifiers> to create a self-contained publish, and nothing changes.

The linux server should not access internet and therefore it cannot download the dependencies.

How can I include all the dependencies in the published files?

1 Answers
Related