Skip to content

Commit

Permalink
Updated targets to only add the downloaded dll instead of re-evaluati…
Browse files Browse the repository at this point in the history
…ng the entire content directory
  • Loading branch information
REHERC committed Jul 30, 2021
1 parent 189cfaf commit 59e5a30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Distance.UnityExplorer/Distance.UnityExplorer.targets
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<UE_DownloadURL>https://github.com/$(UE_Repository)/releases/latest/download/$(UE_Artifact).zip</UE_DownloadURL>
<UE_ArtifactPath>$(MSBuildThisFileDirectory)$(UE_Artifact)</UE_ArtifactPath>

<ContentDependencies>$(SolutionDir)$(ProjectName).Content\Mod\Dependencies</ContentDependencies>
<ContentDependencies>$(SolutionDir)$(ProjectName).Content\Mod\Dependencies\</ContentDependencies>
</PropertyGroup>
<DownloadFile
SourceUrl="$(UE_DownloadURL)"
Expand All @@ -28,11 +28,11 @@
<MakeDir Directories="$(ContentDependencies)"/>
<Move SourceFiles="$(UE_ArtifactPath).dll" DestinationFolder="$(ContentDependencies)"/>

<!-- "Recreate" the @ModContent item group as it may be missing the File downloaded above -->
<!-- Update the @ModContent item group as it may be missing the File downloaded above -->
<!-- The file may be missing from the group when it is downloaded for the first time -->
<!-- This happens because the original item group is evaluated before the target is run -->
<ItemGroup>
<ModContent Include="$(ProjectDir)\..\$(ProjectName).Content\Mod\**\*.*"/>
<ModContent Include="$(ContentDependencies)$(UE_Artifact).dll"/>
</ItemGroup>
</Target>
</Project>

0 comments on commit 59e5a30

Please sign in to comment.