Skip to content

Commit

Permalink
Use AfterTargets instead of DependsOnTargets
Browse files Browse the repository at this point in the history
This is related to #131 

`DependsOnTargets` is not picked up by msbuild, but using `AfterTargets` works, however we can't have both
  • Loading branch information
Redth committed Nov 20, 2018
1 parent a1dc438 commit f50955b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -97,11 +97,11 @@
For the given api level (ZZ) unless the property is explicitly set to override this behaviour
-->
<Target Name="AddOrgApacheHttpLegacyJarInProguardExternalJavaLibs"
DependsOnTargets="_ResolveMonoAndroidSdks;_ValidateAndroidPackageProperties"
AfterTargets="_ResolveMonoAndroidSdks;_ValidateAndroidPackageProperties"
BeforeTargets="Proguard"
Condition="$(IncludeOrgApacheHttpLegacyJarInProguard) == 'True' and Exists ('$(AndroidSdkDirectory)/platforms/android-$(_AndroidTargetSdkVersion)/optional/org.apache.http.legacy.jar')">
<ItemGroup>
<AndroidExternalJavaLibrary Include="$(AndroidSdkDirectory)/platforms/android-$(_AndroidTargetSdkVersion)/optional/org.apache.http.legacy.jar" />
</ItemGroup>
</Target>
</Project>
</Project>

0 comments on commit f50955b

Please sign in to comment.