From 52140d52210eda0f25ecab9f89b5c73473e9d8e0 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 17 Apr 2016 18:57:29 +0100 Subject: Add CLI for .NET version --- dotnet/Mammoth.Cli/Mammoth.Cli.csproj | 44 +++++++++++++++++++++++++++ dotnet/Mammoth.Cli/Program.cs | 11 +++++++ dotnet/Mammoth.Cli/Properties/AssemblyInfo.cs | 27 ++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 dotnet/Mammoth.Cli/Mammoth.Cli.csproj create mode 100644 dotnet/Mammoth.Cli/Program.cs create mode 100644 dotnet/Mammoth.Cli/Properties/AssemblyInfo.cs (limited to 'dotnet/Mammoth.Cli') diff --git a/dotnet/Mammoth.Cli/Mammoth.Cli.csproj b/dotnet/Mammoth.Cli/Mammoth.Cli.csproj new file mode 100644 index 0000000..f7e125e --- /dev/null +++ b/dotnet/Mammoth.Cli/Mammoth.Cli.csproj @@ -0,0 +1,44 @@ + + + + Debug + AnyCPU + {20602E78-EEBD-407B-B8C3-EDB6254BD663} + Exe + Mammoth.Cli + Mammoth.Cli + v4.5 + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + true + + + full + true + bin\Release + prompt + 4 + true + + + + + + + + + + + + {51C5CBD6-8809-4D5E-BABE-1787A16F5ED8} + Mammoth + + + \ No newline at end of file diff --git a/dotnet/Mammoth.Cli/Program.cs b/dotnet/Mammoth.Cli/Program.cs new file mode 100644 index 0000000..f45b100 --- /dev/null +++ b/dotnet/Mammoth.Cli/Program.cs @@ -0,0 +1,11 @@ +using System; +using Mammoth; + +namespace Mammoth.Cli { + internal class Program { + public static void Main(string[] args) { + var result = new DocumentConverter().ConvertToHtml(args[0]); + Console.WriteLine(result.Value); + } + } +} diff --git a/dotnet/Mammoth.Cli/Properties/AssemblyInfo.cs b/dotnet/Mammoth.Cli/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e68abd2 --- /dev/null +++ b/dotnet/Mammoth.Cli/Properties/AssemblyInfo.cs @@ -0,0 +1,27 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle ("Mammoth.Cli")] +[assembly: AssemblyDescription ("")] +[assembly: AssemblyConfiguration ("")] +[assembly: AssemblyCompany ("")] +[assembly: AssemblyProduct ("")] +[assembly: AssemblyCopyright ("mick")] +[assembly: AssemblyTrademark ("")] +[assembly: AssemblyCulture ("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion ("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] + -- cgit v1.2.3