summaryrefslogtreecommitdiff
path: root/update-docs-windows.bat
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-03-22 20:02:25 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-03-22 23:13:41 (GMT)
commit17fdde66d94155fc62a034fa6658995bef6fd6e5 (patch)
treeb5e5073a2a7b15cdbe826faa5c763e270a505729 /update-docs-windows.bat
downloadxamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.zip
xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.gz
xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.bz2
Initial import
Diffstat (limited to 'update-docs-windows.bat')
-rw-r--r--update-docs-windows.bat29
1 files changed, 29 insertions, 0 deletions
diff --git a/update-docs-windows.bat b/update-docs-windows.bat
new file mode 100644
index 0000000..c783879
--- /dev/null
+++ b/update-docs-windows.bat
@@ -0,0 +1,29 @@
+@echo off
+PATH="C:\Program Files (x86)\Mono\bin";%PATH%
+
+echo "Updating Xamarin.Forms.Core"
+tools\mdoc\mdoc update --delete Xamarin.Forms.Core\bin\Debug\Xamarin.Forms.Core.dll -L "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile259" --out docs\Xamarin.Forms.Core | findstr /r "^Members.Added:..," > tmpFile
+set /p RESULT= < tmpFile
+echo "%RESULT%"
+del tmpFile
+
+IF NOT "%RESULT%" == "Members Added: 0, Members Deleted: 0" (exit 1)
+
+echo "Updating Xamarin.Forms.Xaml"
+tools\mdoc\mdoc update --delete Xamarin.Forms.Xaml\bin\Debug\Xamarin.Forms.Xaml.dll -L "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile259" --out docs\Xamarin.Forms.Xaml | findstr /r "^Members.Added:..," > tmpFile
+set /p RESULT= < tmpFile
+echo "%RESULT%"
+del tmpFile
+
+IF NOT "%RESULT%" == "Members Added: 0, Members Deleted: 0" (exit 1)
+
+echo "Updating Xamarin.Forms.Maps"
+tools\mdoc\mdoc update --delete Xamarin.Forms.Maps\bin\Debug\Xamarin.Forms.Maps.dll -L "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile259" --out docs\Xamarin.Forms.Maps | findstr /r "^Members.Added:..," > tmpFile
+set /p RESULT= < tmpFile
+echo "%RESULT%"
+del tmpFile
+
+IF NOT "%RESULT%" == "Members Added: 0, Members Deleted: 0" (exit 1)
+
+exit 0
+