Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set 'EmbedAssembliesIntoApk' MSBuild property to 'true' in Visual Studio for Mac on Android project?

Tags:

c#

xamarin

I have a issue in my android project, and want to set EmbedAssembliesIntoApk to true ?

The error is:

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'.

From where can I set EmbedAssembliesIntoApk to true ?

like image 920
Ben Johnson Avatar asked Dec 07 '25 04:12

Ben Johnson


1 Answers

From your error message, you can take a look about Fast Deployment, Fast deployment works by further shrinking Android application package size.

To remove this error message,there are two ways to do, one is to double-click Android project Properties---select Android Options---disable Use Fast Development(Debug mode only)

Fast deployment is enabled by default, and may be disabled in Debug builds by setting the $(EmbedAssembliesIntoApk) property to True.

Another way is to go to the csproj file, try placing <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk> within the Debug configuration PropertyGroup

About go to the csproj file, you can take a look:

How to find open Xamarin Android or iOS csproj file in Visual Studio Solution Explorer

like image 184
Cherry Bu - MSFT Avatar answered Dec 08 '25 16:12

Cherry Bu - MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!