Xamarin Studio在为调试目标编译时是否应该生成一个APK?[英] Is Xamarin Studio supposed to generate an APK when compiling for debug target?

本文是小编为大家收集整理的关于Xamarin Studio在为调试目标编译时是否应该生成一个APK?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我不想建立一个释放apk.我只是编译了我的Xamarin应用程序,选择了调试目标,然后我看我的/bin/debug/文件夹,我只看到.dll,.dll.mdb,.pdb文件,但没有.apk文件.

推荐答案

要获取.apk将构建设置为释放模式并转到Project-> Create Android软件包

其他推荐答案

在Xamarin版本6.3:

  1. 将项目配置设置为"释放".
  2. 右键单击您的项目 - >存档进行发布.

在此处输入图像描述

源: https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/pullishing_an_application/part_1___preparing_an_application_for_release/#archive_for_publishing

本文地址:https://www.itbaoku.cn/post/1937936.html

问题描述

I don't want to build a release APK. I simply compile my xamarin app, with the Debug target selected, and then I look in my /bin/Debug/ folder and I only see .dll, .dll.mdb, .pdb files, but no .apk file.

推荐答案

To get the .apk set the build to Release mode and go to Project->Create Android Package

其他推荐答案

In Xamarin version 6.3:

  1. Set your project configuration to "Release".
  2. Right click on your project -> Archive for Publishing.

enter image description here

Source:https://developer.xamarin.com/Guides/Android/Deployment,_Testing,_and_Metrics/publishing_an_application/Part_1_-_Preparing_an_Application_for_Release/#Archive_for_Publishing