Deploying .Net core console application to Debian server

前端 未结 3 556
Happy的楠姐
Happy的楠姐 2021-01-19 07:11

I have some problem with deploy simple .Net core console application to linux server.

I\'ve created simple console Hello world application this way:

         


        
3条回答
  •  渐次进展
    2021-01-19 07:36

    You may want to check out dotnet-packaging as well. It includes a dotnet deb command line utility which allows you to create a .deb file (i.e. a Debian installer) which you can use to install your app on Debian. It should make deployment easier for you.

    To get started, you'll first need to add this section to your .csproj file:

    
      
      
    
    

    Then, run dotnet restore and dotnet deb -c Release -r debian.8-x64 -f netcoreapp2.0. This will create a .deb file you can use to deploy your application to Debian.

提交回复
热议问题