5 echo "Publishes the NuGet packages to the specified location."
6 echo "For publishing to Azure the following properties are required."
7 echo " /p:CloudDropAccountName=\"account name\""
8 echo " /p:CloudDropAccessToken=\"access token\""
9 echo " /p:__BuildType=\"Configuration\""
10 echo "Configuration can be Release, Checked, or Debug"
14 working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
15 publish_log=$working_tree_root/publish.log
19 unprocessedBuildArgs="$unprocessedBuildArgs $1"
23 # Use uname to determine what the OS is.
51 echo "Unsupported OS $OSName detected, configuring as if for Linux"
56 echo $unprocessedBuildArgs
58 options="/nologo /v:minimal /flp:v=detailed;Append;LogFile=$publish_log"
60 echo "Running publish-packages.sh $*" > $publish_log
62 echo "Running init-tools.sh"
63 $working_tree_root/init-tools.sh
65 echo "Restoring all packages..."
66 echo -e "\n$working_tree_root/Tools/corerun $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/publish.proj $options $unprocessedBuildArgs" /p:__BuildOS=$__BuildOS >> $publish_log
67 $working_tree_root/Tools/corerun $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/publish.proj $options $unprocessedBuildArgs /p:__BuildOS=$__BuildOS
70 echo -e "\nPackage publishing failed. Aborting." >> $publish_log
71 echo "ERROR: An error occurred while publishing packages; see $publish_log for more details. There may have been networking problems, so please try again in a few minutes."
75 echo "Publish completed successfully."
76 echo -e "\nPublish completed successfully." >> $publish_log