.NET Core 2.0 application published as deb file

后端 未结 2 396
生来不讨喜
生来不讨喜 2021-02-03 11:01

Is it possible to transform published .NET Core 2.0 application to .deb file? I published my app by dotnet publish -c Release -r ubuntu.16.04-x64. Now, my goal is

相关标签:
2条回答
  • 2021-02-03 11:51

    If you want to create .deb packages for your .NET Core applications, you can use dotnet-deb.

    To install dotnet-deb, add the following references to your .csproj file:

    <ItemGroup> <PackageReference Include="Packaging.Targets" Version="0.1.1-*" /> <DotNetCliToolReference Include="dotnet-deb" Version="0.1.1-*" /> <ItemGroup>

    Then, run dotnet restore and dotnet publish -c Release -f netcoreapp2.0 -r ubuntu.16.04-x64. This will generate a Debian installer package for you.

    I'm the maintainer for the dotnet-deb, feel free to ask follow up questions or head over to https://github.com/qmfrederik/dotnet-packaging if you have questions.

    0 讨论(0)
  • 2021-02-03 11:52

    Looks like you want https://github.com/qmfrederik/dotnet-packaging! It provides commands like dotnet deb to package up your project into a deb/rpm/tar for Linux.

    0 讨论(0)
提交回复
热议问题