From b4fad01541a8e57ebddf3d21a6471c9746acfe24 Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Fri, 6 Oct 2017 23:29:28 +0200 Subject: [PATCH] Add dotnet-deb command --- dotnet-deb/Program.cs | 13 +++++++++++ dotnet-deb/dotnet-deb.csproj | 43 ++++++++++++++++++++++++++++++++++++ dotnet-packaging.sln | 13 +++++++++-- 3 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 dotnet-deb/Program.cs create mode 100644 dotnet-deb/dotnet-deb.csproj diff --git a/dotnet-deb/Program.cs b/dotnet-deb/Program.cs new file mode 100644 index 0000000..9ba46c3 --- /dev/null +++ b/dotnet-deb/Program.cs @@ -0,0 +1,13 @@ +using System.Diagnostics; + +namespace Dotnet.Packaging +{ + class Program + { + static int Main(string[] args) + { + PackagingRunner runner = new PackagingRunner("Debian/Ubuntu installer package", "CreateDeb"); + return runner.Run(args); + } + } +} diff --git a/dotnet-deb/dotnet-deb.csproj b/dotnet-deb/dotnet-deb.csproj new file mode 100644 index 0000000..8dd5901 --- /dev/null +++ b/dotnet-deb/dotnet-deb.csproj @@ -0,0 +1,43 @@ + + + Exe + netcoreapp1.0;netcoreapp2.0 + 0.1.1 + Frederik Carlier + Quamotion + Copyright (c) Frederik Carlier and Contributors + https://github.com/qmfrederik/dotnet-packaging/blob/master/LICENSE + https://github.com/qmfrederik/dotnet-packaging/ + https://github.com/qmfrederik/dotnet-packaging/ + git + dotnet cli packaging deb debian ubuntu mint installer + Create Debian and Ubuntu installers (.deb files ) of your .NET Core projects straight from the command line. + +Once you've installed this package as a .NET CLI tool, run dotnet deb to generate a .deb file which contains the publish output of your .NET Project. + +See https://github.com/qmfrederik/dotnet-packaging/ for more information on how to use dotnet deb. + Packaging Tools for .NET CLI + $(USERPROFILE)\.nuget\packages + + + + + + + + + true + lib\$(TargetFramework)\ + + + + + prefercliruntime + true + + + + + + + \ No newline at end of file diff --git a/dotnet-packaging.sln b/dotnet-packaging.sln index 44afea6..fc6c115 100644 --- a/dotnet-packaging.sln +++ b/dotnet-packaging.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26430.4 +VisualStudioVersion = 15.0.26730.16 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-tarball", "dotnet-tarball\dotnet-tarball.csproj", "{7CC0E2CC-8D01-41A2-A8A6-951161D7E413}" EndProject @@ -11,7 +11,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-zip", "dotnet-zip\do EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Packaging.Targets.Tests", "Packaging.Targets.Tests\Packaging.Targets.Tests.csproj", "{794FEF8B-7496-4CF9-BFE0-65CBFD3D962A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnet-rpm", "dotnet-rpm\dotnet-rpm.csproj", "{8DE91847-CD14-4B05-BD4E-6B3FEBF6C014}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-rpm", "dotnet-rpm\dotnet-rpm.csproj", "{8DE91847-CD14-4B05-BD4E-6B3FEBF6C014}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-deb", "dotnet-deb\dotnet-deb.csproj", "{CB69DD41-E3DA-4418-8A32-419E1B5642DD}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -39,8 +41,15 @@ Global {8DE91847-CD14-4B05-BD4E-6B3FEBF6C014}.Debug|Any CPU.Build.0 = Debug|Any CPU {8DE91847-CD14-4B05-BD4E-6B3FEBF6C014}.Release|Any CPU.ActiveCfg = Release|Any CPU {8DE91847-CD14-4B05-BD4E-6B3FEBF6C014}.Release|Any CPU.Build.0 = Release|Any CPU + {CB69DD41-E3DA-4418-8A32-419E1B5642DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CB69DD41-E3DA-4418-8A32-419E1B5642DD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CB69DD41-E3DA-4418-8A32-419E1B5642DD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CB69DD41-E3DA-4418-8A32-419E1B5642DD}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {62E1BD2B-4750-4D2C-B86C-12BDD4BD5CB1} + EndGlobalSection EndGlobal