summaryrefslogtreecommitdiff
path: root/scripts/nuget_build.ps1
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-06-18 20:49:11 -0700
committerGitHub <noreply@github.com>2017-06-18 20:49:11 -0700
commitade869ea58a2c43cc6c9981a9e6d97127a19cd92 (patch)
tree436bf6c28704b400dd23b6c69900598bef61976f /scripts/nuget_build.ps1
parent0027b6ac7907dce79cc2f13230c7ecb46ce14ff6 (diff)
parentb66ca4f3266d4b092bd358b7227d628fc6cb14fe (diff)
Merge pull request #147 from igagis/master
VS2017 project + NuGet support
Diffstat (limited to 'scripts/nuget_build.ps1')
-rw-r--r--scripts/nuget_build.ps133
1 files changed, 33 insertions, 0 deletions
diff --git a/scripts/nuget_build.ps1 b/scripts/nuget_build.ps1
new file mode 100644
index 0000000..bcb774f
--- /dev/null
+++ b/scripts/nuget_build.ps1
@@ -0,0 +1,33 @@
+Push-Location
+$scriptdir = Split-Path $MyInvocation.MyCommand.Path
+cd $scriptdir
+
+"%VS141COMNTOOLS%\VsMSBuildCmd.bat"
+msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2017.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2017.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2017.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo
+If(!$?){exit 1}
+msbuild pugixml_vs2017.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo
+If(!$?){exit 1}
+Write-NuGetPackage nuget.autopkg
+If(!$?){exit 1}
+
+Pop-Location