File tree 2 files changed +5
-5
lines changed
src/Xamarin.Android.Build.Tasks
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
11
11
<AndroidNETSdkVersion >@ANDROID_PACK_VERSION_LONG@</AndroidNETSdkVersion >
12
12
<XamarinAndroidVersion >@ANDROID_PACK_VERSION_LONG@</XamarinAndroidVersion >
13
13
<_AndroidLatestStableApiLevel >@ANDROID_LATEST_STABLE_API_LEVEL@</_AndroidLatestStableApiLevel >
14
+ <_AndroidLatestUnstableApiLevel >@ANDROID_LATEST_UNSTABLE_API_LEVEL@</_AndroidLatestUnstableApiLevel >
14
15
</PropertyGroup >
15
16
<PropertyGroup >
16
17
<_AndroidTargetingPackId Condition =" $(TargetPlatformVersion.EndsWith('.0'))" >$(TargetPlatformVersion.Substring(0, $(TargetPlatformVersion.LastIndexOf('.0'))))</_AndroidTargetingPackId >
17
18
<_AndroidTargetingPackId Condition =" '$(_AndroidTargetingPackId)' == ''" >$(TargetPlatformVersion)</_AndroidTargetingPackId >
18
- <!-- NOTE: adjust if a TargetFramework supports multiple API levels -->
19
- <_AndroidErrorOnTargetPlatformVersion Condition =" '$(_AndroidTargetingPackId)' != '$(_AndroidLatestStableApiLevel)' " >$(_AndroidTargetingPackId)</_AndroidErrorOnTargetPlatformVersion >
20
- <_AndroidTargetingPackId Condition =" '$(_AndroidTargetingPackId)' != '$(_AndroidLatestStableApiLevel)' " >$(_AndroidLatestStableApiLevel)</_AndroidTargetingPackId >
19
+ <_AndroidErrorOnTargetPlatformVersion Condition =" '$(_AndroidTargetingPackId)' != '$(_AndroidLatestStableApiLevel)' and '$(_AndroidTargetingPackId)' != '$(_AndroidLatestUnstableApiLevel)' " >$(_AndroidTargetingPackId)</_AndroidErrorOnTargetPlatformVersion >
20
+ <_AndroidTargetingPackId Condition =" '$(_AndroidTargetingPackId)' != '$(_AndroidLatestStableApiLevel)' and '$(_AndroidTargetingPackId)' != '$(_AndroidLatestUnstableApiLevel)' " >$(_AndroidLatestStableApiLevel)</_AndroidTargetingPackId >
21
21
<_AndroidRuntimePackId Condition =" '$(_AndroidRuntimePackId)' == '' " >$(_AndroidTargetingPackId)</_AndroidRuntimePackId >
22
- <_AndroidRuntimePackId Condition =" '$(_AndroidRuntimePackId)' != '$(_AndroidLatestStableApiLevel)' " >$(_AndroidLatestStableApiLevel)</_AndroidRuntimePackId >
22
+ <_AndroidRuntimePackId Condition =" '$(_AndroidRuntimePackId)' != '$(_AndroidLatestStableApiLevel)' and '$(_AndroidRuntimePackId)' != '$(_AndroidLatestUnstableApiLevel)' " >$(_AndroidLatestStableApiLevel)</_AndroidRuntimePackId >
23
23
</PropertyGroup >
24
24
<ItemGroup >
25
25
<KnownFrameworkReference
Original file line number Diff line number Diff line change 360
360
<ReplaceFileContents
361
361
SourceFile =" $(MSBuildThisFileDirectory)Microsoft.Android.Sdk\in\Microsoft.Android.Sdk.BundledVersions.in.targets"
362
362
DestinationFile =" $(MSBuildThisFileDirectory)\Microsoft.Android.Sdk\targets\Microsoft.Android.Sdk.BundledVersions.targets"
363
- Replacements =" @ANDROID_PACK_VERSION_LONG@=$(AndroidPackVersionLong);@ANDROID_LATEST_STABLE_API_LEVEL@=$(AndroidLatestStableApiLevel);@DOTNET_TARGET_FRAMEWORK@=$(DotNetTargetFramework)" >
363
+ Replacements =" @ANDROID_PACK_VERSION_LONG@=$(AndroidPackVersionLong);@ANDROID_LATEST_STABLE_API_LEVEL@=$(AndroidLatestStableApiLevel);@ANDROID_LATEST_UNSTABLE_API_LEVEL@=$(AndroidLatestUnstableApiLevel);@ DOTNET_TARGET_FRAMEWORK@=$(DotNetTargetFramework)" >
364
364
</ReplaceFileContents >
365
365
</Target >
366
366
You can’t perform that action at this time.
0 commit comments