Reputation: 5503
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?
Upvotes: 3
Views: 1230
Reputation: 100581
.NET Core 2.0 has a new linux-x64
runtime identifier that you should publish for.
dotnet publish -r linux-x64
Upvotes: 2