<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: KeePass PLGX build automation</title>
	<atom:link href="http://christomlinson.name/articles/keepass-plgx-build-automation/feed" rel="self" type="application/rss+xml" />
	<link>http://christomlinson.name/articles/keepass-plgx-build-automation</link>
	<description></description>
	<lastBuildDate>Sun, 05 Sep 2010 13:03:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: jaybz</title>
		<link>http://christomlinson.name/articles/keepass-plgx-build-automation/comment-page-1#comment-2</link>
		<dc:creator>jaybz</dc:creator>
		<pubDate>Wed, 23 Sep 2009 09:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://christomlinson.name/?p=23#comment-2</guid>
		<description>Here&#039;s the post-build event that I use. I&#039;m not sure if this is portable as this was a quick hack. This also does not auto-install to the KeePass 2.x directory and in fact does not need it to be actually installed. I am able to copy-paste it to any other project&#039;s post-build event, however, it does assume that the current directory is the output directory which in turn is ..\Build\$(ConfigurationName)\DLL\ and that KeePass.exe is in the same directory as the Build directory.

echo POSTBUILDSTEP for $(ProjectName)

set PLGXDIR=$(SolutionDir)
if “%PLGXDIR:~-1%”==”\” set PLGXDIR=%PLGXDIR:~0,-1%

rmdir /s /q ..\PLGX
mkdir ..\PLGX
copy /y *.txt ..\PLGX\
move /y &quot;$(SolutionDir)obj&quot; ..\
..\..\..\..\KeePass.exe --plgx-create &quot;%PLGXDIR%&quot;
move /y ../obj &quot;$(SolutionDir)&quot;
move /y &quot;..\..\..\$(ProjectName).plgx&quot; ..\PLGX\

Tested on Visual C# 2008 Express Edition.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the post-build event that I use. I&#8217;m not sure if this is portable as this was a quick hack. This also does not auto-install to the KeePass 2.x directory and in fact does not need it to be actually installed. I am able to copy-paste it to any other project&#8217;s post-build event, however, it does assume that the current directory is the output directory which in turn is ..\Build\$(ConfigurationName)\DLL\ and that KeePass.exe is in the same directory as the Build directory.</p>
<p>echo POSTBUILDSTEP for $(ProjectName)</p>
<p>set PLGXDIR=$(SolutionDir)<br />
if “%PLGXDIR:~-1%”==”\” set PLGXDIR=%PLGXDIR:~0,-1%</p>
<p>rmdir /s /q ..\PLGX<br />
mkdir ..\PLGX<br />
copy /y *.txt ..\PLGX\<br />
move /y &#8220;$(SolutionDir)obj&#8221; ..\<br />
..\..\..\..\KeePass.exe &#8211;plgx-create &#8220;%PLGXDIR%&#8221;<br />
move /y ../obj &#8220;$(SolutionDir)&#8221;<br />
move /y &#8220;..\..\..\$(ProjectName).plgx&#8221; ..\PLGX\</p>
<p>Tested on Visual C# 2008 Express Edition.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
