forked from dnSpyEx/dnSpy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.targets
43 lines (43 loc) · 2.66 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<Project>
<ItemGroup>
<!-- Remove unwanted files, eg. resources of unused files, unused native files -->
<GarbageFile Include="cs\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="de\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="es\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="fr\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="it\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="ja\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="ko\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="pl\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="pt-BR\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="ru\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="tr\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="zh-Hans\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="zh-Hant\Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" />
<GarbageFile Include="Microsoft.CodeAnalysis.Workspaces.Desktop.dll" />
<GarbageFile Include="Microsoft.CodeAnalysis.Workspaces.Desktop.pdb" />
<GarbageFile Include="SQLitePCLRaw.batteries_green.dll" />
<GarbageFile Include="SQLitePCLRaw.batteries_v2.dll" />
<GarbageFile Include="SQLitePCLRaw.core.dll" />
<GarbageFile Include="SQLitePCLRaw.provider.e_sqlite3.dll" />
<GarbageFile Include="e_sqlite3.dll" />
<GarbageFile Include="x64\e_sqlite3.dll" />
<GarbageFile Include="x86\e_sqlite3.dll" />
<GarbageDir Include="x86" />
<GarbageDir Include="x64" />
<GarbageDir Include="ja" />
<GarbageDir Include="ko" />
<GarbageDir Include="pl" />
<GarbageDir Include="zh-Hans" />
<GarbageDir Include="zh-Hant" />
<GarbageDir Include="runtimes" Condition=" '$(IsDotNetFramework)' == 'true' " />
</ItemGroup>
<Target Name="MyRemoveGarbageFiles_AfterBuild" AfterTargets="AfterBuild">
<Delete Files="$(OutputPath)%(GarbageFile.Identity)" ContinueOnError="WarnAndContinue" />
<RemoveDir Directories="$(OutputPath)%(GarbageDir.Identity)" ContinueOnError="WarnAndContinue" />
</Target>
<Target Name="MyRemoveGarbageFiles_Publish" AfterTargets="Publish">
<Delete Files="$(PublishDir)%(GarbageFile.Identity)" ContinueOnError="WarnAndContinue" />
<RemoveDir Directories="$(PublishDir)%(GarbageDir.Identity)" ContinueOnError="WarnAndContinue" />
</Target>
</Project>