使用 PowerShell 或 MSBuild 获取 UWP Store 关联
Get UWP Store associations using PowerShell or MSBuild
我正在使用 AppVeyor CI 构建我的 UWP 应用程序,并希望在每次构建期间创建一个 APPX 包。但是,我的 .gitignore
忽略了我想包含在 APPX 包中的 Package.StoreAssociation.xml
和 MyAppName_StoreKey.pfx
,因为它们在 Windows Store 中识别我的应用程序。
是否有任何方法可以使用 PowerShell 或 MSBuild 或类似工具获取这些文件?换句话说,是否有与 Project > Store > Associate App with the Store...
向导等效的命令行?
我知道我可以将这些文件作为 Secure files 上传到存储库,但我更愿意在每次构建时从开发中心获取最新文件。
我想说可能不是,因为将应用程序与商店向导关联是一个经过身份验证的向导,需要用户 Microsoft 帐户注册 Visual Studio,从存储中加载凭据或要求 OAuth,以及然后 Visual Studio 转到 Microsoft 的服务器以签署证书并使用它签署应用程序。
AppVeyor 文档说当前 UWP 没有正式支持 UWP,因为需要 Microsoft 许可证。
Is there any way to get these files using PowerShell or MSBuild or something like that? In other words, is there any command line equivalent to the Project > Store > Associate App with the Store... wizard?
不,如。关联操作需要用户在Visual Studio中进行交互,这不依赖于public command/API.
根据我的经验,我们需要在某个地方存储(维护)最新的商店关联信息,覆盖相关文件并替换应用程序清单中的保留关键字 打包前的模板文件
我正在使用 AppVeyor CI 构建我的 UWP 应用程序,并希望在每次构建期间创建一个 APPX 包。但是,我的 .gitignore
忽略了我想包含在 APPX 包中的 Package.StoreAssociation.xml
和 MyAppName_StoreKey.pfx
,因为它们在 Windows Store 中识别我的应用程序。
是否有任何方法可以使用 PowerShell 或 MSBuild 或类似工具获取这些文件?换句话说,是否有与 Project > Store > Associate App with the Store...
向导等效的命令行?
我知道我可以将这些文件作为 Secure files 上传到存储库,但我更愿意在每次构建时从开发中心获取最新文件。
我想说可能不是,因为将应用程序与商店向导关联是一个经过身份验证的向导,需要用户 Microsoft 帐户注册 Visual Studio,从存储中加载凭据或要求 OAuth,以及然后 Visual Studio 转到 Microsoft 的服务器以签署证书并使用它签署应用程序。
AppVeyor 文档说当前 UWP 没有正式支持 UWP,因为需要 Microsoft 许可证。
Is there any way to get these files using PowerShell or MSBuild or something like that? In other words, is there any command line equivalent to the Project > Store > Associate App with the Store... wizard?
不,如
根据我的经验,我们需要在某个地方存储(维护)最新的商店关联信息,覆盖相关文件并替换应用程序清单中的保留关键字 打包前的模板文件