xide_placeholders_prebuild
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
xide_placeholders_prebuild [2018/01/26 14:54] – created wolfgangriedmann | xide_placeholders_prebuild [2018/01/26 15:06] (current) – wolfgangriedmann | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Placeholders and Prebuild/ | ====== Placeholders and Prebuild/ | ||
+ | |||
+ | For Prebuild and Postbuild events in XDIE the following placeholders are available: | ||
+ | |||
+ | * %NETSDKPATH% | ||
+ | * %OUTPUTFILE% | ||
+ | * %OUTPUTPDB% | ||
+ | * %OUTPUTPATH% | ||
+ | * %ProjectOutputPath% | ||
+ | * %AppPath% | ||
+ | * %ProjectPath% | ||
+ | * %ConfigPath% | ||
+ | * %AppName% | ||
+ | * %AssemblyName% | ||
+ | |||
+ | A small sample for the executable '' | ||
+ | < | ||
+ | |||
+ | or more powerful using a cmd file (from real use): | ||
+ | < | ||
+ | |||
+ | where postbuildcopy.cmd has the following content: | ||
+ | < | ||
+ | set assemblyname=%1 | ||
+ | set sourcepath=%2% | ||
+ | set targetpath=%3% | ||
+ | set sourcefile=%sourcepath%\%assemblyname% | ||
+ | set targetfile=%targetpath%\%assemblyname% | ||
+ | if not exist %sourcefile% goto endcmd | ||
+ | if exist %targetfile% goto replace | ||
+ | copy %sourcefile% %targetfile% | ||
+ | goto endcmd | ||
+ | :replace | ||
+ | replace %sourcefile% %targetpath% /u | ||
+ | : | ||
+ | |||
+ | After request, the author has added another powerful option to XIDE: The possibility to copy all assemblies of a project to a specific folder. This is particularly useful for library projects.\\ | ||
+ | {{: | ||
+ | |||
+ | |||
xide_placeholders_prebuild.1516978494.txt.gz · Last modified: 2018/01/26 14:54 by wolfgangriedmann