Skip to content

Commit

Permalink
[wasm][sdk] Clean the managed directory files on /t:Clean build t…
Browse files Browse the repository at this point in the history
…arget (mono#14756)

* Clean the `managed` directory files on `/t:Clean` build target

* Modify the `CleanManaged` target to `_CleanManagedOutputDir`.

- Address comments by Mikayla.
  • Loading branch information
kjpou1 committed Jun 5, 2019
1 parent a3de030 commit 7a74dd6
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
<_MonoWasmRuntimeJs>$(OutputPath)runtime.js</_MonoWasmRuntimeJs>
</PropertyGroup>

<PropertyGroup>
<CleanDependsOn>
$(CleanDependsOn);
_CleanManagedOutputDir;
</CleanDependsOn>
</PropertyGroup>

<!-- suppress local copy for now, we don't want any local copied dlls -->
<Target Name="CopyFilesToOutputDirectory" DependsOnTargets="MonoWasmCopyOutput" />

Expand Down Expand Up @@ -81,4 +88,10 @@
OutputFile="$(_MonoWasmRuntimeJs)"
/>
</Target>
<Target Name = "_CleanManagedOutputDir">
<ItemGroup>
<FilesToDelete Include="$(_MonoWasmManagedOutputDir)**\*"/>
</ItemGroup>
<Delete Files="@(FilesToDelete)" />
</Target>
</Project>

0 comments on commit 7a74dd6

Please sign in to comment.