Created
November 16, 2016 10:02
-
-
Save Eun/aecee1cebd463199023b4793c5c98566 to your computer and use it in GitHub Desktop.
ILMerge AfterBuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Target Name="AfterBuild" Condition="'$(Configuration)'=='Release'"> | |
<CreateItem Include="$(SolutionDir)\packages\ILMerge.*\tools\ILMerge.exe"> | |
<Output TaskParameter="Include" ItemName="ILMergeExe" /> | |
</CreateItem> | |
<Error Text="@(ILMergeExe) does not exists" Condition="!Exists('@(ILMergeExe)')" /> | |
<CreateItem Include="@(ReferencePath)" Condition="'%(CopyLocal)'=='true'"> | |
<Output TaskParameter="Include" ItemName="ILMergeAssemblies" /> | |
</CreateItem> | |
<Delete Files="$(OutputPath)\ILMerge.log" Condition="Exists('$(OutputPath)\ILMerge.log')" /> | |
<Exec Command=""@(ILMergeExe)" /ndebug /log:$(OutputPath)\ILMerge.log /out:@(MainAssembly) "@(IntermediateAssembly)" @(ILMergeAssemblies->'"%(FullPath)"', ' ')" /> | |
</Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment