Skip to content

Commit

Permalink
fix: Run UnoAssetsGeneration at design time
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban authored Apr 9, 2024
1 parent c1d6266 commit 440ea5a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,16 @@
</ItemGroup>
</Target>

<!--
The UnoAssetsGeneration must be run at design time as well, as it
interacts with the `.R` generation on android. If not run, temporary
resource files may be deleted incorrectly by design time builds.
-->
<Target Name="UnoAssetsGeneration"
BeforeTargets="_GetLibraryImports;_CheckForContent;_CollectBundleResources;_CompileAppManifest;_ComputeAndroidResourcePaths"
DependsOnTargets="ResolveProjectReferences;GetCopyToOutputDirectoryItems;_UnoLangSetup"
Condition="
'$(DesignTimeBuild)' != 'true'
and '$(BuildingInsideUnoSourceGenerator)' == ''
'$(BuildingInsideUnoSourceGenerator)' == ''
and ('$(IsUnoHead)'=='true'
or '$(AndroidApplication)'=='true'
or '$(ProjectTypeGuids)'!='')">
Expand Down

0 comments on commit 440ea5a

Please sign in to comment.