.NET Core 2.0应用程序作为deb文件发布
是否可以将已发布的.NET Core 2.0应用程序转换为.deb文件?.NET Core 2.0应用程序作为deb文件发布,.net,ubuntu,.net-core,asp.net-core-2.0,.net,Ubuntu,.net Core,Asp.net Core 2.0,是否可以将已发布的.NET Core 2.0应用程序转换为.deb文件? 我通过dotnet publish-c Release-r ubuntu.16.04-x64发布了我的应用程序。现在,我的目标是拥有一个可以安装在Ubuntu机器上的deb文件 看起来像你想要的!它提供了类似于dotnetdeb的命令,用于将项目打包为适用于Linux的deb/rpm/tar。如果要为.NET核心应用程序创建.deb包,可以使用dotnetdeb 要安装dotnet deb,请将以下引用添加到.csproj
我通过
dotnet publish-c Release-r ubuntu.16.04-x64
发布了我的应用程序。现在,我的目标是拥有一个可以安装在Ubuntu机器上的deb文件 看起来像你想要的!它提供了类似于dotnetdeb
的命令,用于将项目打包为适用于Linux的deb/rpm/tar。如果要为.NET核心应用程序创建.deb
包,可以使用dotnetdeb
要安装dotnet deb
,请将以下引用添加到.csproj
文件中:
然后,运行dotnet restore
和dotnet publish-c Release-f netcoreapp2.0-r ubuntu.16.04-x64
。这将为您生成一个Debian安装程序包
我是
dotnet deb的维护者
,如果您有任何疑问,请随时提出后续问题或前往。您不需要*.deb。只需复制发布文件夹并通过dotnet yourapp运行应用程序