Created
February 19, 2020 19:23
-
-
Save 3F/b651430f601c99e9f10abf3a8482d3e3 to your computer and use it in GitHub Desktop.
ILMerge and other related 3rd party tool for .NET DllExport
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
<!-- https://ko-fi.com/post/ILMerge-and-other-related-3rd-party-tool-for--NET-Y8Y71FVU4 --> | |
... | |
<!-- For .NET DllExport 1.7 --> | |
<Target Name="Merging" BeforeTargets="DllExportMod"> | |
<Copy SourceFiles="$(DllExportMetaLibFullPath)" | |
DestinationFolder="$(TargetDir)" | |
SkipUnchangedFiles="true" | |
OverwriteReadOnlyFiles="true" /> | |
<Exec Command="$(ILMergeConsolePath) Conari.dll $(TargetFileName) /out:$(TargetFileName) /ndebug" | |
WorkingDirectory="$(TargetDir)" | |
ContinueOnError="true" /> | |
<Delete Files="$(TargetDir)$(DllExportMetaLibName)" ContinueOnError="true" /> | |
</Target> | |
<ItemGroup> | |
<PackageReference Include="Conari" Version="1.4.0" /> | |
<PackageReference Include="ilmerge" Version="3.0.29" /> | |
</ItemGroup> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment