User Tools

Site Tools


xide_placeholders_prebuild

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
xide_placeholders_prebuild [2018/01/26 14:54] – created wolfgangriedmannxide_placeholders_prebuild [2018/01/26 14:58] wolfgangriedmann
Line 1: Line 1:
 ====== Placeholders and Prebuild/Postbuild events ====== ====== Placeholders and Prebuild/Postbuild events ======
  
 +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 cmd.exe:
 +<code>%AppPath%Prg\App.config %ProjectOutputPath%%ConfigPath%%AssemblyName%.exe.config /y</code>
 +
 +or more powerful using a cmd file (from real use):
 +<code>/c c:\xsharp\xide\postbuildcopy.cmd "%AssemblyName%.dll" "%ProjectOutputPath%%ConfigPath%" "c:\devnet\libs\rdm"</code>
 +
 +where postbuildcopy.cmd has the following content:
 +<code>@echo off
 +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
 +:endcmd</code>
xide_placeholders_prebuild.txt · Last modified: 2018/01/26 15:06 by wolfgangriedmann