I have some problem with deploy simple .Net core console application to linux server.
I\'ve created simple console Hello world application this way:
--self-contained
means that you dont need to have installed .Net Core on your target machine because all of the needed components are in the release folder
Second thing is duplicating parameters because -r debian.8-x64
setting to true --self-contained
(in other words you dont need --self-contained
after you set a runtime identifier)
Finally try dotnet restore
before publish. Then make sure you copying right thing from ./bin/[configuration]/[framework]/[runtime]
( ./bin/[configuration]/[framework]/
is for a framework-dependent deployment). You can even set output folder manually by parameter -o
(for example dotnet publish -c release -r debian.8-x64 -o copyme
and copy copyme
to your "linux server")