summaryrefslogtreecommitdiff
path: root/scripts/nuget_build.bat
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-10 11:42:25 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-10 11:42:25 -0700
commit3147190f3d652419a7f33e8110b480f36603b1ed (patch)
tree690ad6a0775d77fb0aadcc340829a52b3ce3947f /scripts/nuget_build.bat
parentc356bb071fbd54185d54f7069f5862a92a0d6d69 (diff)
scripts: Cleanup NuGet packaging
Move pugixml project file for VS2015 to scripts/ and unify the output file structure similar to old VS201x projects. Remove test projects and solution since they are not required for building. Provide more accurate information in the package script and handle build errors during package construction properly.
Diffstat (limited to 'scripts/nuget_build.bat')
-rw-r--r--scripts/nuget_build.bat8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/nuget_build.bat b/scripts/nuget_build.bat
new file mode 100644
index 0000000..807f89a
--- /dev/null
+++ b/scripts/nuget_build.bat
@@ -0,0 +1,8 @@
+@echo off
+
+"%VS140COMNTOOLS%\VsMSBuildCmd.bat" && ^
+msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^
+msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^
+msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo && ^
+msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo && ^
+powershell Write-NuGetPackage nuget.autopkg