Skip to content

Commit 8f8f846

Browse files
authored
clean build (#40)
1 parent 098d886 commit 8f8f846

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<Project>
2+
</Project>

Directory.Build.targets

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<Project>
2+
<ItemGroup>
3+
<!-- Remove unwanted files, eg. resources of unused files, unused native files -->
4+
<GarbageFile Include="cs\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
5+
<GarbageFile Include="de\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
6+
<GarbageFile Include="es\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
7+
<GarbageFile Include="fr\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
8+
<GarbageFile Include="it\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
9+
<GarbageFile Include="ja\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
10+
<GarbageFile Include="ko\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
11+
<GarbageFile Include="pl\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
12+
<GarbageFile Include="pt-BR\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
13+
<GarbageFile Include="ru\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
14+
<GarbageFile Include="tr\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
15+
<GarbageFile Include="zh-Hans\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
16+
<GarbageFile Include="zh-Hant\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
17+
<GarbageFile Include="Microsoft.CodeAnalysis.Workspaces.Desktop.dll" />
18+
<GarbageFile Include="Microsoft.CodeAnalysis.Workspaces.Desktop.pdb" />
19+
<GarbageDir Include="x86" />
20+
<GarbageDir Include="x64" />
21+
<GarbageDir Include="ja" />
22+
<GarbageDir Include="ko" />
23+
<GarbageDir Include="pl" />
24+
<GarbageDir Include="zh-Hans" />
25+
<GarbageDir Include="zh-Hant" />
26+
<GarbageDir Include="runtimes" Condition=" '$(IsDotNetFramework)' == 'true' " />
27+
</ItemGroup>
28+
<Target Name="MyRemoveGarbageFiles_AfterBuild" AfterTargets="AfterBuild">
29+
<Delete Files="$(OutputPath)%(GarbageFile.Identity)" ContinueOnError="WarnAndContinue" />
30+
<RemoveDir Directories="$(OutputPath)%(GarbageDir.Identity)" ContinueOnError="WarnAndContinue" />
31+
</Target>
32+
<Target Name="MyRemoveGarbageFiles_Publish" AfterTargets="Publish">
33+
<Delete Files="$(PublishDir)%(GarbageFile.Identity)" ContinueOnError="WarnAndContinue" />
34+
<RemoveDir Directories="$(PublishDir)%(GarbageDir.Identity)" ContinueOnError="WarnAndContinue" />
35+
</Target>
36+
</Project>

0 commit comments

Comments
 (0)