Skip to content

Commit bc14e00

Browse files
JustMaierMarkPieszak
authored andcommitted
Ignore dist folders in IDE and clear them on MSBuild clean (TrilonIO#207)
1 parent 5b7c2b9 commit bc14e00

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Asp2017.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<ItemGroup>
1818
<!-- Files not to show in IDE -->
1919
<None Remove="yarn.lock" />
20+
<Content Remove="wwwroot\dist\**" />
21+
<None Remove="Client\dist\**" />
2022

2123
<!-- Files not to publish (note that the 'dist' subfolders are re-added below) -->
2224
<Content Remove="Client\**" />
@@ -40,4 +42,11 @@
4042
</ResolvedFileToPublish>
4143
</ItemGroup>
4244
</Target>
45+
<Target Name="CleanDist" AfterTargets="Clean">
46+
<ItemGroup>
47+
<FilesToDelete Include="Client\dist\**; wwwroot\dist\**"/>
48+
</ItemGroup>
49+
<Delete Files="@(FilesToDelete)" />
50+
<RemoveDir Directories="Client\dist; wwwroot\dist" />
51+
</Target>
4352
</Project>

0 commit comments

Comments
 (0)