Xamarin.forms 如何将VSTS内部版本号设置为App center
我正在从事xamarin表单项目,目前我使用Azure devops运行管道 我计划将构建配置从Devops移动到App Center 除了版本号外,我的版本在应用程序中心运行良好 正如图中所示,我的版本倾向于从头开始 我在这里为AppCenter编写的脚本是Xamarin.forms 如何将VSTS内部版本号设置为App center,xamarin.forms,xamarin.ios,visual-studio-app-center,Xamarin.forms,Xamarin.ios,Visual Studio App Center,我正在从事xamarin表单项目,目前我使用Azure devops运行管道 我计划将构建配置从Devops移动到App Center 除了版本号外,我的版本在应用程序中心运行良好 正如图中所示,我的版本倾向于从头开始 我在这里为AppCenter编写的脚本是 if [ -e "$INFO_PLIST_FILE" ] then echo "##[command][Pre-Build Action] - Updating version name to $V
if [ -e "$INFO_PLIST_FILE" ]
then
echo "##[command][Pre-Build Action] - Updating version name to $VERSION_NAME in Info.plist"
plutil -replace CFBundleShortVersionString -string $VERSION_NAME $INFO_PLIST_FILE
plutil -replace CFBundleVersion -string $VERSION_NAME $INFO_PLIST_FILE
echo "##[section][Pre-Build Action] - Info.plist File content:"
cat $INFO_PLIST_FILE
echo "##[section][Pre-Build Action] - Info.plist EOF"
fi
我怎样才能得到真实的版本号
任何帮助都非常感谢