Skip to content

Commit 9ec2246

Browse files
committed
some fixes
1 parent cebf2d1 commit 9ec2246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.Bindings.Core.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ It is shared between "legacy" binding projects and .NET 5 projects.
145145
<!-- Write a flag so we won't redo this target if nothing changed -->
146146
<Touch Files="$(_GeneratorStampFile)" AlwaysCreate="true" />
147147

148-
<ItemGroup>
148+
<ItemGroup Condition=" '@(_GeneratedBindingFiles->Count())' != '0' ">
149149
<_ExistingGeneratedFiles Include="$(GeneratedOutputPath)**\*.cs" />
150150
<_ExistingGeneratedFiles Remove="@(_GeneratedBindingFiles)" />
151151
</ItemGroup>
152152

153153
<!-- Delete any files which should not be there. -->
154-
<Delete Files="@(_ExistingGeneratedFiles)" />
154+
<Delete Files="@(_ExistingGeneratedFiles)" Condition=" '@(_ExistingGeneratedFiles->Count())' != '0' "/>
155155

156156
<ItemGroup>
157157
<FileWrites Include="$(GeneratedOutputPath)**\*.cs" />

0 commit comments

Comments
 (0)