From 09385535104cd29b3205c37f02020375f8e1b631 Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Mon, 13 Feb 2017 21:09:09 +0100 Subject: [PATCH] Add NuGet building files --- .gitignore | 1 + LICENSE.txt | 2 +- README.md | 5 +++- VAR.PdfTools.sln | 16 ++++++---- VAR.PdfTools/Build.NuGet.cmd | 24 +++++++++++++++ VAR.PdfTools/NuGet/keep.txt | 0 VAR.PdfTools/Properties/AssemblyInfo.cs | 2 +- VAR.PdfTools/VAR.PdfTools.csproj | 39 +++++++++++++++++++++---- VAR.PdfTools/VAR.PdfTools.nuspec | 22 ++++++++++++++ VAR.PdfTools/packages.config | 4 +++ 10 files changed, 102 insertions(+), 13 deletions(-) create mode 100644 VAR.PdfTools/Build.NuGet.cmd create mode 100644 VAR.PdfTools/NuGet/keep.txt create mode 100644 VAR.PdfTools/VAR.PdfTools.nuspec create mode 100644 VAR.PdfTools/packages.config diff --git a/.gitignore b/.gitignore index 97266e7..b5331c3 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ obj/ [Rr]elease*/ _ReSharper*/ *.userprefs +*.nupkg diff --git a/LICENSE.txt b/LICENSE.txt index 318247e..5fcf784 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2015 Valeriano Alfonso Rodriguez +Copyright (c) 2016-2017 Valeriano Alfonso Rodriguez Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index f2b08d2..e1dfe97 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,9 @@ It is a simple Windows.Forms application, to test basic funcitionallity of the l ## Building A Visual Studio 2015 and 2010 solutions are provided. Simply, click build on the IDE. +A .nuget package can be build using: + VAR.PdfTools\Build.NuGet.cmd + ## Contributing 1. Fork it! 2. Create your feature branch: `git checkout -b my-new-feature` @@ -47,7 +50,7 @@ A Visual Studio 2015 and 2010 solutions are provided. Simply, click build on the The MIT License (MIT) - Copyright (c) 2014-2015 Valeriano Alfonso Rodriguez + Copyright (c) 2016-2017 Valeriano Alfonso Rodriguez Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/VAR.PdfTools.sln b/VAR.PdfTools.sln index bf33ddc..21657a5 100644 --- a/VAR.PdfTools.sln +++ b/VAR.PdfTools.sln @@ -1,22 +1,28 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 -VisualStudioVersion = 14.0.25123.0 +VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VAR.PdfTools", "VAR.PdfTools\VAR.PdfTools.csproj", "{EB7E003A-6A95-4002-809F-926C7C8A11E9}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VAR.PdfTools.Workbench", "VAR.PdfTools.Workbench\VAR.PdfTools.Workbench.csproj", "{A5825D8E-9F81-49E0-B610-8AE5E46D02EA}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Notes", "Notes", "{CE2D7584-5D82-401E-9A88-A9961CBB6959}" + ProjectSection(SolutionItems) = preProject + LICENSE.txt = LICENSE.txt + README.md = README.md + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Release|Any CPU.Build.0 = Release|Any CPU + {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Debug|Any CPU.ActiveCfg = Debug .Net 4.6.1|Any CPU + {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Debug|Any CPU.Build.0 = Debug .Net 4.6.1|Any CPU + {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Release|Any CPU.ActiveCfg = Release .Net 4.6.1|Any CPU + {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Release|Any CPU.Build.0 = Release .Net 4.6.1|Any CPU {A5825D8E-9F81-49E0-B610-8AE5E46D02EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A5825D8E-9F81-49E0-B610-8AE5E46D02EA}.Debug|Any CPU.Build.0 = Debug|Any CPU {A5825D8E-9F81-49E0-B610-8AE5E46D02EA}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/VAR.PdfTools/Build.NuGet.cmd b/VAR.PdfTools/Build.NuGet.cmd new file mode 100644 index 0000000..df8ff42 --- /dev/null +++ b/VAR.PdfTools/Build.NuGet.cmd @@ -0,0 +1,24 @@ +@echo off + +:: MSBuild and tools path +if exist "%ProgramFiles%\MSBuild\14.0\bin" set PATH=%ProgramFiles%\MSBuild\14.0\bin;%PATH% +if exist "%ProgramFiles(x86)%\MSBuild\14.0\bin" set PATH=%ProgramFiles(x86)%\MSBuild\14.0\bin;%PATH% + +:: NuGet +set nuget="nuget" +if exist "%~dp0..\packages\NuGet.CommandLine.3.4.3\tools\NuGet.exe" set nuget="%~dp0\..\packages\NuGet.CommandLine.3.4.3\tools\NuGet.exe" + +:: Release .Net 3.5 +Title Building Release .Net 3.5 +msbuild VAR.PdfTools.csproj /t:Build /p:Configuration="Release .Net 3.5" /p:Platform="AnyCPU" + +:: Release .Net 4.6.1 +Title Building Release .Net 4.6.1 +msbuild VAR.PdfTools.csproj /t:Build /p:Configuration="Release .Net 4.6.1" /p:Platform="AnyCPU" + +:: Packing Nuget +Title Packing Nuget +%nuget% pack VAR.PdfTools.csproj -Verbosity detailed -OutputDir "NuGet" -MSBuildVersion "14.0" -Properties Configuration="Release .Net 4.6.1" -Prop Platform=AnyCPU + +title Finished +pause diff --git a/VAR.PdfTools/NuGet/keep.txt b/VAR.PdfTools/NuGet/keep.txt new file mode 100644 index 0000000..e69de29 diff --git a/VAR.PdfTools/Properties/AssemblyInfo.cs b/VAR.PdfTools/Properties/AssemblyInfo.cs index b990cd3..fa36ecd 100644 --- a/VAR.PdfTools/Properties/AssemblyInfo.cs +++ b/VAR.PdfTools/Properties/AssemblyInfo.cs @@ -6,7 +6,7 @@ using System.Runtime.InteropServices; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("VAR")] [assembly: AssemblyProduct("VAR.PdfTools")] -[assembly: AssemblyCopyright("Copyright © VAR 2016")] +[assembly: AssemblyCopyright("Copyright © VAR 2016-2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] diff --git a/VAR.PdfTools/VAR.PdfTools.csproj b/VAR.PdfTools/VAR.PdfTools.csproj index c3347d6..6240f0b 100644 --- a/VAR.PdfTools/VAR.PdfTools.csproj +++ b/VAR.PdfTools/VAR.PdfTools.csproj @@ -13,22 +13,43 @@ 512 - + true full false - bin\Debug\ + bin\Debug\net461 DEBUG;TRACE prompt 4 + v4.6.1 - + pdbonly true - bin\Release\ + bin\Release\net461 TRACE prompt 4 + v4.6.1 + + + true + full + false + bin\Debug\net35 + DEBUG;TRACE + prompt + 4 + v3.5 + + + pdbonly + true + bin\Release\net35 + TRACE + prompt + 4 + v3.5 @@ -50,6 +71,14 @@ + + + + + + + + - + \ No newline at end of file diff --git a/VAR.PdfTools/VAR.PdfTools.nuspec b/VAR.PdfTools/VAR.PdfTools.nuspec new file mode 100644 index 0000000..6de6ea8 --- /dev/null +++ b/VAR.PdfTools/VAR.PdfTools.nuspec @@ -0,0 +1,22 @@ + + + + $id$ + $version$ + $title$ + $author$ + $author$ + https://github.com/Kableado/VAR.PdfTools/blob/master/LICENSE.txt + https://github.com/Kableado/VAR.PdfTools + false + $description$ + Copyright VAR 2016-2017 + PDF Library + + + + + + + + \ No newline at end of file diff --git a/VAR.PdfTools/packages.config b/VAR.PdfTools/packages.config new file mode 100644 index 0000000..d8529dd --- /dev/null +++ b/VAR.PdfTools/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file