Skip to content

Commit

Permalink
Update ILRepack reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Sep 3, 2024
1 parent b6e21cb commit 6e98c91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ricaun.ILRepack/ricaun.ILRepack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@
<Compile Remove="**\*" />
</ItemGroup>

<ItemGroup>
<!--<ItemGroup>
<PackageReference Include="ILRepack" Version="2.0.34" GeneratePathProperty="true"/>
</ItemGroup>
</ItemGroup>-->

<Target Name="CopyPackFiles" AfterTargets="Pack">
<PropertyGroup>
Expand Down
7 changes: 4 additions & 3 deletions ricaun.ILRepack/ricaun.ILRepack.targets
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<ILRepackFilePathExec>ilrepack\2.0.34\tools\ILRepack.exe</ILRepackFilePathExec>
<ILRepack Condition="'$(ILRepack)' == ''">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\..\..\$(ILRepackFilePathExec)'))</ILRepack>
</PropertyGroup>

<Target Name="ILRepackTarget" AfterTargets="CopyFilesToOutputDirectory" Condition="$(ILRepackEnabled)">

<PropertyGroup>
Expand Down Expand Up @@ -78,8 +78,9 @@
</PropertyGroup>

<Message Text="ILRepack Exec: '$(ILRepackFullCommand)'" Importance="$(ILRepackImportance)" />
<Error Condition="'$(ILRepack)' == ''" Text="Unable to locate 'ILRepack.exe'" />
<Error Condition="!Exists('$(ILRepack)')" Text="Unable to locate '$(ILRepack)'" />

<Exec Command="$(ILRepackFullCommand)"
WorkingDirectory="$(MSBuildProjectDirectory)"
ConsoleToMSBuild="true"
Expand All @@ -89,7 +90,7 @@

<Target Name="ILRepackDeleteTarget" AfterTargets="ILRepackTarget" Condition="$(ILRepackDeleteEnabled)">
<Message Text="ILRepack Delete: [@(ILRepackIncludedEmbeddedAssemblies -> '%(Filename)%(Extension)', ', ')]" Importance="$(ILRepackImportance)" />

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

0 comments on commit 6e98c91

Please sign in to comment.