Skip to content

Commit

Permalink
Update ILRepackDelete to delete pdb files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Feb 24, 2025
1 parent f099ee5 commit 322e6e6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [1.0.2] / 2025-02-24
### Features
- Update `ILRepack` version `2.0.39`.
### Updates
- Add `PackageReference` to find the `ILRepack` version.
- Update `ILRepackDelete` to delete `pdb` files.

## [1.0.1] / 2025-02-03
### Features
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.0.2-alpha.1</Version>
<Version>1.0.2-beta</Version>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Ignore references to be repack with file name start with `Newtonsoft` and `Syste
## Todo
- [x] Add option to ignore specific assembly/dependencies in the ILRepack.
- [x] Add support to ignore assembly/dependencies in the ILRepack using star, Example: `Newtonsoft`.
- [ ] Delete dependencies debug file from the output.
- [x] Delete dependencies debug file from the output.
- [ ] Remove dependencies to be copy from the output.

## Release
Expand Down
9 changes: 8 additions & 1 deletion ricaun.ILRepack/ricaun.ILRepack.targets
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,16 @@
</Target>

<Target Name="ILRepackDeleteTarget" AfterTargets="ILRepackTarget" Condition="$(ILRepackEnabled) and $(ILRepackDeleteEnabled)">

<ItemGroup>
<ILRepackDeleteFiles Include="@(ILRepackIncludedEmbeddedAssemblies -> '%(RootDir)%(Directory)%(Filename).dll')"/>
<ILRepackDeleteFiles Include="@(ILRepackIncludedEmbeddedAssemblies -> '%(RootDir)%(Directory)%(Filename).pdb')"/>
<ILRepackDeleteFiles Include="@(ILRepackIncludedEmbeddedAssemblies -> '%(RootDir)%(Directory)%(Filename).xml')"/>
</ItemGroup>

<Message Text="ILRepack Delete: [@(ILRepackIncludedEmbeddedAssemblies -> '%(Filename)%(Extension)', ', ')]" Importance="$(ILRepackImportance)" Condition="'@(ILRepackIncludedEmbeddedAssemblies->Count())' != '0'" />

<Delete Files="@(ILRepackIncludedEmbeddedAssemblies)" />
<Delete Files="@(ILRepackDeleteFiles)" />
<ItemGroup>
<Directories Include="$([System.IO.Directory]::GetDirectories('$(OutDir)%(DestinationSubDirectory)', '*', System.IO.SearchOption.AllDirectories))"/>
<Directories>
Expand Down

0 comments on commit 322e6e6

Please sign in to comment.