Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 2cb0880

Browse files
authored
Merge pull request #167 from jonathanpeppers/verifyversionstask
[msbuild] make _VerifyXamarinAndroidSupportVersions incremental
2 parents f2e01b6 + 3881f37 commit 2cb0880

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

source/com.android.support/support-annotations/merge.targets

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55
AssemblyFile="Xamarin.Android.Support.BuildTasks.dll"
66
TaskName="Xamarin.Android.Support.BuildTasks.VerifyVersionsTask" />
77

8+
<PropertyGroup>
9+
<_SupportedVersionsStamp>$(IntermediateOutputPath)_VerifyXamarinAndroidSupportVersions.stamp</_SupportedVersionsStamp>
10+
</PropertyGroup>
11+
812
<Target
913
Name="_VerifyXamarinAndroidSupportVersions"
10-
AfterTargets="ResolveAssemblyReferences">
14+
Condition=" '$(DesignTimeBuild)' != 'True' "
15+
AfterTargets="ResolveAssemblyReferences"
16+
Inputs="$(MSBuildProjectFile);$(AndroidManifest)"
17+
Outputs="$(_SupportedVersionsStamp)">
1118

1219
<PropertyGroup>
1320
<XamarinAndroidSupportSkipVerifyVersions Condition="'$(XamarinAndroidSupportSkipVerifyVersions)'==''">false</XamarinAndroidSupportSkipVerifyVersions>
@@ -24,6 +31,14 @@
2431
>
2532
</VerifyVersionsTask>
2633

34+
<Touch
35+
AlwaysCreate="True"
36+
Files="$(_SupportedVersionsStamp)"
37+
/>
38+
<ItemGroup>
39+
<FileWrites Include="$(_SupportedVersionsStamp)" />
40+
</ItemGroup>
41+
2742
</Target>
2843

2944
</Project>

0 commit comments

Comments
 (0)