Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Documentation/guides/building-apps/build-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ MSBuild properties control the behavior of the
They're specified within the project file, for example **MyApp.csproj**, within
an [MSBuild PropertyGroup](/visualstudio/msbuild/propertygroup-element-msbuild).

## AndroidSkipBuildApk

By default, building an Android project has a different behavior between IDE and command-line build. When building in VS, building an APK (as well as some aapt2 and Java-related targets) are skipped.
On command-line, they are not skipped. The property `AndroidSkipBuildApk` can be used in command-line builds to get a behavior similar to the one found in the IDE. For more information, see [dotnet build & publish docs](https://github.com/xamarin/xamarin-android/blob/main/Documentation/guides/OneDotNet.md#dotnet-build--publish).

## AdbTarget

The `$(AdbTarget)` property specifies the Android target device the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ properties that determine build ordering.
Outside IDEs: we need to produce an .apk/.aab and sign
Inside IDEs: the Install target produces .apk/.aab files & signs
-->
<BuildDependsOn Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">
<BuildDependsOn Condition=" '$(BuildingInsideVisualStudio)' != 'true' AND '$(AndroidSkipBuildApk)' != 'true'">
$(BuildDependsOn);
_CopyPackage;
_Sign;
Expand Down