Skip to content

Commit

Permalink
Bump to Microsoft.Android.Sdk 10.4.99.51 (#10)
Browse files Browse the repository at this point in the history
* `$(OutputType)` = `Exe` is what flags an app vs library

dotnet/android#4604

* New `Run` target

dotnet/android#4609
  • Loading branch information
jonathanpeppers authored Apr 29, 2020
1 parent 97323bb commit fd54abc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions HelloAndroid/HelloAndroid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<PropertyGroup>
<TargetFramework>netcoreapp5.0</TargetFramework>
<RuntimeIdentifier>android.21-x86</RuntimeIdentifier>
<OutputType>Exe</OutputType>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions HelloForms.Android/HelloForms.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>netcoreapp5.0</TargetFramework>
<RuntimeIdentifier>android.21-x86</RuntimeIdentifier>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.5.0.617" GeneratePathProperty="true" />
Expand Down
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,14 @@ For example, to build the Android project:

dotnet publish HelloAndroid/HelloAndroid.csproj

You can also deploy an Android project to an attached emulator via:
You can launch the Android project to an attached emulator via:

dotnet publish -t:Install HelloAndroid/HelloAndroid.csproj
dotnet publish HelloAndroid/HelloAndroid.csproj -t:Run

To deploy to a device, you can either modify `$(RuntimeIdentifier)` in
To deploy and run on a device, you can either modify `$(RuntimeIdentifier)` in
the `.csproj` or run:

dotnet publish -t:Install HelloAndroid/HelloAndroid.csproj -r android.21-arm64

To launch the app:

dotnet build -t:StartAndroidActivity HelloAndroid/HelloAndroid.csproj

_This can also be done at the same time as `dotnet publish -t:Install -t:StartAndroidActivity`. We will eventually add a `Run` target for simplicity._
dotnet publish HelloAndroid/HelloAndroid.csproj -t:Run -r android.21-arm64

### iOS

Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"msbuild-sdks": {
"Microsoft.iOS.Sdk": "13.21.1-alpha.139",
"Microsoft.Android.Sdk": "10.4.99.37"
"Microsoft.Android.Sdk": "10.4.99.51"
}
}

0 comments on commit fd54abc

Please sign in to comment.