From 33cdfd77cfe6087e6976b97d04c755da8c5dfc62 Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Wed, 19 Oct 2022 23:31:57 +0200 Subject: [PATCH] WIP --- VAR.UrlCompressor/Build.NuGet.cmd | 30 ++++++++++++++++++++++ VAR.UrlCompressor/VAR.UrlCompressor.nuspec | 22 ++++++++++++++++ VAR.UrlCompressor/packages.config | 4 +++ 3 files changed, 56 insertions(+) create mode 100644 VAR.UrlCompressor/Build.NuGet.cmd create mode 100644 VAR.UrlCompressor/VAR.UrlCompressor.nuspec create mode 100644 VAR.UrlCompressor/packages.config diff --git a/VAR.UrlCompressor/Build.NuGet.cmd b/VAR.UrlCompressor/Build.NuGet.cmd new file mode 100644 index 0000000..c92cc77 --- /dev/null +++ b/VAR.UrlCompressor/Build.NuGet.cmd @@ -0,0 +1,30 @@ +@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.3.4.3\tools\NuGet.exe" set nuget="%~dp0\..\packages\NuGet.CommandLine.3.4.3\tools\NuGet.exe" +if exist "%~dp0..\packages\NuGet.CommandLine.4.1.0\tools\NuGet.exe" set nuget="%~dp0\..\packages\NuGet.CommandLine.4.1.0\tools\NuGet.exe" + +:: Release .Net 3.5 +Title Building Release .Net 3.5 +msbuild VAR.UrlCompressor.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.UrlCompressor.csproj /t:Build /p:Configuration="Release .Net 4.6.1" /p:Platform="AnyCPU" + +:: Packing Nuget +Title Packing Nuget +%nuget% pack VAR.UrlCompressor.csproj -Verbosity detailed -OutputDir "NuGet" -Properties Configuration="Release .Net 4.6.1" -Prop Platform=AnyCPU + +title Finished +pause diff --git a/VAR.UrlCompressor/VAR.UrlCompressor.nuspec b/VAR.UrlCompressor/VAR.UrlCompressor.nuspec new file mode 100644 index 0000000..b21de39 --- /dev/null +++ b/VAR.UrlCompressor/VAR.UrlCompressor.nuspec @@ -0,0 +1,22 @@ + + + + $id$ + $version$ + $title$ + $author$ + $author$ + https://github.com/Kableado/VAR.UrlCompressor/blob/master/LICENSE.txt + https://github.com/Kableado/VAR.UrlCompressor + false + $description$ + Copyright VAR 2017 + URL Compression Library + + + + + + + + \ No newline at end of file diff --git a/VAR.UrlCompressor/packages.config b/VAR.UrlCompressor/packages.config new file mode 100644 index 0000000..fc48570 --- /dev/null +++ b/VAR.UrlCompressor/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file