-
-
Notifications
You must be signed in to change notification settings - Fork 142
PreProc
Some manipulation for modules together with .NET DllExport tool is not a rare question as we can see. [?]
Easiest access to unmanaged things through integration with Conari in "one click".
There are no more any possible problems with loading the assembly and resolving its types: https://github.com/3F/Conari/issues/11#issuecomment-625436847
- ILRepack: https://github.com/gluck/il-repack
- ILMerge: https://github.com/dotnet/ILMerge
Example: https://github.com/3F/DllExport/issues/40#issuecomment-593147220
<!-- For .NET DllExport 1.7 and newer -->
<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.5.0" />
<PackageReference Include="ilmerge" Version="3.0.29" />
</ItemGroup>AssemblyResolve is one of the possible solutions to problems when you get an FileNotFoundException and related, for example:
- System.IO.FileLoadException: Could not resolve assemble "System.Text.Json ...
- https://github.com/3F/DllExport/issues/154
- https://github.com/3F/DllExport/issues/156
- https://github.com/3F/Conari/issues/11
Pre-processing with ILMerge or ILRepack is another way to achieve the same result without additional programming at all.
Same for Conari
Except where otherwise noted, wiki content is licensed under a Creative Commons Attribution 4.0 International License. (CC BY 4.0).
π
- π Home
- π Quick start
- π First function
- π Data types
- π .Net Core
- π Export
- π Pre-processing
- π Conari
- π ILMerge & ILRepack
- π [x]AssemblyResolve
- π Post-processing
- π Examples
- π C++ and C# ([+]πΉ)
- π string & struct ([+]πΉ)
- π§ͺ Demo
π
- π DllExport Manager
π
- π Q / A
