Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Automatically pack all assemblies when referencing nuget package #13

Closed
icnocop opened this issue Jan 21, 2016 · 1 comment
Closed

Automatically pack all assemblies when referencing nuget package #13

icnocop opened this issue Jan 21, 2016 · 1 comment

Comments

@icnocop
Copy link

icnocop commented Jan 21, 2016

Thank you for ILRepack.MSBuild.Task.

I would like to request that all referenced assemblies marked as "Copy Local" be packed automatically when referencing the nuget package.

For example, the following msbuild task should be injected:

  <!-- ILRepack -->
  <Target Name="AfterBuild">

     <ItemGroup>
      <InputAssemblies Include="$(OutputPath)\*.dll" />
     </ItemGroup>

     <ILRepack 
      Parallel="true"
      Internalize="false"
      InputAssemblies="@(InputAssemblies)"
      TargetKind="Dll"
      ZeroPeKind="true"
      OutputFile="$(OutputPath)\$(AssemblyName).dll" />

  </Target>
  <!-- /ILRepack -->

In this way it's very easy to internalize all assemblies of the project.

The nuget package will need to detect if the project's output is a dll or exe and update the msbuild task accordingly.

Thank you.

@icnocop icnocop changed the title Automatically internalize all assemblies when referencing nuget package Automatically pack all assemblies when referencing nuget package Jan 21, 2016
@peters
Copy link
Owner

peters commented Jan 12, 2019

@icnocop This is now support. Please checkout the readme on how to use wildcards.

@peters peters closed this as completed Jan 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants