File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,28 @@ Copyright (C) 2016 Xamarin. All rights reserved.
196
196
</ItemGroup >
197
197
</Target >
198
198
199
+ <!--
200
+ The Visual Studio FastUpdate check flags the Resource Designer assembly as
201
+ newer than the output assembly (which it is). But it causes it to incorrectly
202
+ think the build is out of date.
203
+
204
+ So lets remove it. We MUST remove the item from the @ReferencePathWithRefAssemblies
205
+ ItemGroup BEFORE the CollectResolvedCompilationReferencesDesignTime target runs.
206
+ This is because that target uses the Returns functionality. It turns out you cannot
207
+ modify the ItemGroup that is being returned via a Returns on a target.
208
+ -->
209
+ <Target Name =" _RemoveResourceDesignerFromResolvedComilationReferences"
210
+ BeforeTargets =" CollectResolvedCompilationReferencesDesignTime"
211
+ Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'"
212
+ >
213
+ <ItemGroup >
214
+ <_ResourceDesignerFiles Include =" %(ReferencePathWithRefAssemblies.Identity)"
215
+ Condition =" '%(ReferencePathWithRefAssemblies.OriginalPath)' == '$(_GenerateResourceDesignerAssemblyOutput)'"
216
+ />
217
+ <ReferencePathWithRefAssemblies Remove =" @(_ResourceDesignerFiles)" />
218
+ </ItemGroup >
219
+ </Target >
220
+
199
221
<Target Name =" _BuildResourceDesigner"
200
222
Condition =" '$(AndroidUseDesignerAssembly)' == 'True' "
201
223
DependsOnTargets =" $(_BuildResourceDesignerDependsOn)" />
You can’t perform that action at this time.
0 commit comments