我的 android 项目有问题,想将 EmbedAssembliesIntoApk 设置为 true 吗?
错误是:
error XA0130: Please disable fast deployment in the Visual Studio project property pages or edit the project file in a text editor and set the 'EmbedAssembliesIntoApk' MSBuild property to 'true'.
从哪里可以将 EmbedAssembliesIntoApk 设置为 true ?
最佳答案
从您的错误消息中,您可以查看有关 Fast Deployment 的信息, 快速部署通过进一步缩小 Android 应用程序包大小来工作。
要删除这个错误信息,有两种方法,一种是双击Android项目属性---选择Android选项---禁用< strong>使用快速开发(仅限 Debug模式)
快速部署在默认情况下是启用的,并且可以通过设置 $(EmbedAssembliesIntoApk)
在调试构建中禁用。属性为 True。
另一种方法是转到csproj 文件,尝试放置<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
在调试配置中 PropertyGroup
关于去csproj文件,可以看看:
How to find open Xamarin Android or iOS csproj file in Visual Studio Solution Explorer
关于c# - 如何在 Android 项目的 Visual Studio for Mac 中将 'EmbedAssembliesIntoApk' MSBuild 属性设置为 'true'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67603184/