{"id":251,"date":"2016-05-06T12:48:14","date_gmt":"2016-05-06T11:48:14","guid":{"rendered":"http:\/\/www.riedmann.it\/blog\/?p=251"},"modified":"2016-05-06T12:48:14","modified_gmt":"2016-05-06T11:48:14","slug":"xide-placeholders-in-prebuild-and-postbuild-events","status":"publish","type":"post","link":"https:\/\/blog.riedmann.it\/?p=251","title":{"rendered":"XIDE: Placeholders in prebuild and postbuild events"},"content":{"rendered":"<p>The following placeholders are available:<\/p>\n<p>%NETSDKPATH%<br \/>\n%OUTPUTFILE%<br \/>\n%OUTPUTPDB%<br \/>\n%OUTPUTPATH%<br \/>\n%ProjectOutputPath%<br \/>\n%AppPath%<br \/>\n%ProjectPath%<br \/>\n%ConfigPath%<br \/>\n%AppName%<br \/>\n%AssemblyName%<\/p>\n<p>A small sample for the executable cmd.exe:<br \/>\n<code>%AppPath%Prg\\App.config %ProjectOutputPath%%ConfigPath%%AssemblyName%.exe.config \/y<\/code><\/p>\n<p>or preferred by myself:<br \/>\n<code>\/c c:\\xsharp\\xide\\postbuildcopy.cmd \"%AssemblyName%.dll\" \"%ProjectOutputPath%%ConfigPath%\" \"c:\\devnet\\libs\\rdm\"<\/code><\/p>\n<p>where postbuildcopy.cmd has the following content:<br \/>\n<code>@echo off<br \/>\nset assemblyname=%1<br \/>\nset sourcepath=%2%<br \/>\nset targetpath=%3%<br \/>\nset sourcefile=%sourcepath%\\%assemblyname%<br \/>\nset targetfile=%targetpath%\\%assemblyname%<br \/>\nif not exist %sourcefile% goto ende<br \/>\nif exist %targetfile% goto replace<br \/>\ncopy %sourcefile% %targetfile%<br \/>\ngoto ende<br \/>\n:replace<br \/>\nreplace %sourcefile% %targetpath% \/u<br \/>\n:ende<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following placeholders are available: %NETSDKPATH% %OUTPUTFILE% %OUTPUTPDB% %OUTPUTPATH% %ProjectOutputPath% %AppPath% %ProjectPath% %ConfigPath% %AppName% %AssemblyName% A small sample for the executable cmd.exe: %AppPath%Prg\\App.config %ProjectOutputPath%%ConfigPath%%AssemblyName%.exe.config \/y or preferred by myself: \/c c:\\xsharp\\xide\\postbuildcopy.cmd &#8220;%AssemblyName%.dll&#8221; &#8220;%ProjectOutputPath%%ConfigPath%&#8221; &#8220;c:\\devnet\\libs\\rdm&#8221; where postbuildcopy.cmd has the following content: @echo off set assemblyname=%1 set sourcepath=%2% set targetpath=%3% set sourcefile=%sourcepath%\\%assemblyname% set targetfile=%targetpath%\\%assemblyname% if not exist [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-251","post","type-post","status-publish","format-standard","hentry","category-xide"],"_links":{"self":[{"href":"https:\/\/blog.riedmann.it\/index.php?rest_route=\/wp\/v2\/posts\/251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.riedmann.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.riedmann.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.riedmann.it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.riedmann.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=251"}],"version-history":[{"count":1,"href":"https:\/\/blog.riedmann.it\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/blog.riedmann.it\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions\/252"}],"wp:attachment":[{"href":"https:\/\/blog.riedmann.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.riedmann.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.riedmann.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}