-
-
Notifications
You must be signed in to change notification settings - Fork 144
PostProc
Denis Kuzmin [ GitHub/3F ] edited this page May 9, 2020
·
1 revision
Provides options for more diverse integration between your projects and our tool.
Continues direction of the Pre-processing.
-
Choose what data you want to have in output directories of projects that depend on the projects where DllExport is processed.
-
Chose
++to add sequential referencing support through other projects, i.e.:
ProjectC -> ProjectA + ProjectB
ProjectB -> ProjectA
+
ProjectC -> ProjectB -> ProjectA
- Define
DllExportProcEnvproperty:
Format:
For example:
<PropertyGroup>
<DllExportProcEnv>
$(SolutionPath);$(MSBuildThisFileFullPath);
TargetDir;
AssemblyName;
TargetPath;
...
</DllExportProcEnv>
</PropertyGroup>- Add callable target, named as
DllExportPostProc:
<Target Name="DllExportPostProc">
<!-- Now you can access the following properties and items:
$(DllExport) - version
$(DllExportSln) - full path to .sln which controls current project
$(DllExportPrj) - full path to current project where processed .NET DllExport
@(DllExportDirX64) - $(TargetDir)x64\*.*
@(DllExportDirX86) - $(TargetDir)x86\*.*
@(DllExportDirBefore) - $(TargetDir)Before\*.*
@(DllExportDirAfter) - $(TargetDir)After\*.*
@(DllExportDependents + populated property name)
- each populated properties from DllExportProcEnv,
e.g. DllExportDependentsTargetDir
@(DllExportDependencies + populated property name)
- each populated properties from DllExportProcEnv,
e.g. DllExportDependenciesTargetDir
@(DllExportSeqDependents + populated property name)
- each populated properties from DllExportProcEnv,
e.g. DllExportSeqDependentsTargetDir
-->
</Target>- Extend this if you need, for example:
<Target Name="DllExportPostProc">
<!-- ... -->
</Target>
<Target AfterTargets="DllExportPostProc" Name="ExtForPostProc"
Outputs="%(DllExportDependentsTargetDir.Identity)">
<Copy SourceFiles="@(DllExportDirX64)"
DestinationFolder="%(DllExportDependentsTargetDir.Identity)x64\" />
</Target>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
