From 13daa68c266eb113f784f0e71cc59c80bd0a54ab Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Mon, 2 Dec 2019 03:18:26 +0100 Subject: [PATCH] Add nuget building --- .gitignore | 3 +++ VAR.ExpressionEvaluator/Build.NuGet.cmd | 25 +++++++++++++++++++ VAR.ExpressionEvaluator/Nuget/keep.txt | 0 .../Properties/AssemblyInfo.cs | 4 +-- .../VAR.ExpressionEvaluator.csproj | 5 ++++ .../VAR.ExpressionEvaluator.nuspec | 20 +++++++++++++++ VAR.ExpressionEvaluator/packages.config | 4 +++ 7 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 VAR.ExpressionEvaluator/Build.NuGet.cmd create mode 100644 VAR.ExpressionEvaluator/Nuget/keep.txt create mode 100644 VAR.ExpressionEvaluator/VAR.ExpressionEvaluator.nuspec create mode 100644 VAR.ExpressionEvaluator/packages.config diff --git a/.gitignore b/.gitignore index a01cabe..1794c66 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ /.vs/* */bin/* */obj/* +*.nupkg +/packages/* +*.user diff --git a/VAR.ExpressionEvaluator/Build.NuGet.cmd b/VAR.ExpressionEvaluator/Build.NuGet.cmd new file mode 100644 index 0000000..1d499d1 --- /dev/null +++ b/VAR.ExpressionEvaluator/Build.NuGet.cmd @@ -0,0 +1,25 @@ +@echo off + +:: MSBuild and tools path +if exist "%windir%\Microsoft.Net\Framework\v4.0.30319" set MsBuildPath=%windir%\Microsoft.NET\Framework\v4.0.30319 +if exist "%windir%\Microsoft.Net\Framework64\v4.0.30319" set MsBuildPath=%windir%\Microsoft.NET\Framework64\v4.0.30319 +if exist "C:\Program Files (x86)\MSBuild\14.0\Bin" set MsBuildPath=C:\Program Files (x86)\MSBuild\14.0\Bin +if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin" set MsBuildPath=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin +set PATH=%MsBuildPath%;%PATH% + +echo %MsBuildPath% + +:: NuGet +set nuget="nuget" +if exist "%~dp0\..\packages\NuGet.CommandLine.5.3.1\tools\NuGet.exe" set nuget="%~dp0\..\packages\NuGet.CommandLine.5.3.1\tools\NuGet.exe" + +:: Release +Title Building Release +msbuild VAR.ExpressionEvaluator.csproj /t:Build /p:Configuration="Release" /p:Platform="AnyCPU" + +:: Packing Nuget +Title Packing Nuget +%nuget% pack VAR.ExpressionEvaluator.csproj -Verbosity detailed -OutputDir "NuGet" -Properties Configuration="Release" -Prop Platform=AnyCPU + +title Finished +pause diff --git a/VAR.ExpressionEvaluator/Nuget/keep.txt b/VAR.ExpressionEvaluator/Nuget/keep.txt new file mode 100644 index 0000000..e69de29 diff --git a/VAR.ExpressionEvaluator/Properties/AssemblyInfo.cs b/VAR.ExpressionEvaluator/Properties/AssemblyInfo.cs index 57bf608..3d7579a 100644 --- a/VAR.ExpressionEvaluator/Properties/AssemblyInfo.cs +++ b/VAR.ExpressionEvaluator/Properties/AssemblyInfo.cs @@ -2,9 +2,9 @@ using System.Runtime.InteropServices; [assembly: AssemblyTitle("VAR.ExpressionEvaluator")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("Expression Evaluation Library")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] +[assembly: AssemblyCompany("VAR")] [assembly: AssemblyProduct("VAR.ExpressionEvaluator")] [assembly: AssemblyCopyright("Copyright © VAR 2019")] [assembly: AssemblyTrademark("")] diff --git a/VAR.ExpressionEvaluator/VAR.ExpressionEvaluator.csproj b/VAR.ExpressionEvaluator/VAR.ExpressionEvaluator.csproj index e8e2533..f19bedd 100644 --- a/VAR.ExpressionEvaluator/VAR.ExpressionEvaluator.csproj +++ b/VAR.ExpressionEvaluator/VAR.ExpressionEvaluator.csproj @@ -71,5 +71,10 @@ + + + + + \ No newline at end of file diff --git a/VAR.ExpressionEvaluator/VAR.ExpressionEvaluator.nuspec b/VAR.ExpressionEvaluator/VAR.ExpressionEvaluator.nuspec new file mode 100644 index 0000000..a74df36 --- /dev/null +++ b/VAR.ExpressionEvaluator/VAR.ExpressionEvaluator.nuspec @@ -0,0 +1,20 @@ + + + + $id$ + $version$ + $title$ + $author$ + $author$ + https://varstudio.net/VAR.ExpressionEvaluator/LICENSE.txt + https://varstudio.net/VAR.ExpressionEvaluator + false + $description$ + Copyright VAR 2019 + Expression Evaluation + + + + + + \ No newline at end of file diff --git a/VAR.ExpressionEvaluator/packages.config b/VAR.ExpressionEvaluator/packages.config new file mode 100644 index 0000000..a736788 --- /dev/null +++ b/VAR.ExpressionEvaluator/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file