使用 msbuild 从命令行存档 Xamarin.Forms Android 项目
对于 Xamarin.Forms iOS 项目,以下命令似乎有效:
msbuild /p:Configuration='Release' /p:Platform='iPhone' /p:IpaPackageDir=<DIRECTORY FOR IPA TO LIVE> /t:Build '../SampleApp.sln' /p:BuildIpa=true /p:ArchiveOnBuild=true
是否有像“ArchiveOnBuild”这样的参数用于归档 android 项目?
For Xamarin.Forms iOS project, the following command seems to work :
msbuild /p:Configuration='Release' /p:Platform='iPhone' /p:IpaPackageDir=<DIRECTORY FOR IPA TO LIVE> /t:Build '../SampleApp.sln' /p:BuildIpa=true /p:ArchiveOnBuild=true
Is there any such parameter like "ArchiveOnBuild" for archiving android projects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您尚未在 csproj 文件中定义以下属性,则需要将它们作为 MSBuild 参数提供:
然后您可以运行使用目标
进行构建,类似于:
然后,在构建之后,APK 或 AAB 应该位于应用程序项目的 bin/Release 文件夹中。
If you haven't defined the following properties in your csproj file, then you would need to supply them as MSBuild arguments:
Then you can run your build with the targets
So something like:
Then after the build the APK or AAB should be in the bin/Release folder of your App project.