【发布时间】:2019-06-30 12:37:23
【问题描述】:
我想在下面的代码中更改Identity Version 的值
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" >
<Identity Name="Sample.Product " Publisher="CN=1234" Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="456" PhonePublisherId="0" />
</Package>
我尝试使用以下 XmlPoke 代码进行更改。
<XmlPoke XmlInputPath="Package.appxmanifest" Namespaces="<Namespace Prefix='n' Uri='http://schemas.microsoft.com/developer/vsx-schema/2011' Name='N' />" Query="/n:Package/n:Identity/@Version" Value="$(Version)" />
该行不会更改版本。
上面的代码出了什么问题?
【问题讨论】:
-
正在构建的应用程序的版本。这通常会在每次修改和打包应用程序时递增。为确保
Version正确递增,请使用调用 Store -> Create App Packages... 时提供的对话框进行更新。
标签: xamarin versioning xamarin.uwp