First check that LocalPath is pointing to the correct location. Sometimes the 
bug is sooo trivial we don't notice it. ;-)

<SvnVersion/> expects svnversion.exe to live at $(ProgramFiles)\Subversion\bin. 
If it doesn't live there, then specify ToolPath to the directory where it does 
live. Example:

<SvnVersion ToolPath="$(ProgramFiles)\CollabNet Subversion Client" 
LocalPath="..\">
  <Output TaskParameter="Revision" PropertyName="Revision"/>
</SvnVersion>

Use <Message Text="Version: $(Revision)" Importance="high"/> while testing to 
make it easier for the revision to be printed. The verbosity level of msbuild 
can affect whether these messages are printed or not.

Edwin G. Castro
Software Developer - Staff
Electronic Banking Services
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail

> -----Original Message-----
> From: Brian Bakkebo [mailto:bbakk...@gmail.com]
> Sent: Wednesday, April 22, 2009 11:16 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Subversion revision number through a wixproject
> file using msbuild community tasks
>
> I realize this probably isnt the right place for this, but I am hoping
> someone else has got this working and could just give me a hand or
> better
> the code...
>
> I am trying get subversion revision number through a wixproj file using
> msbuild community tasks and it is not working!
> Here is the script I am using. I am not seeing any output in the
> revision.
> <Import
> Project="$(MSBUILDCommunityTasks)\MSBuild.Community.Tasks.Targets"
> /> <!--Get Subversion Revision here-you must use
> MSBUILDCommunityTasks:-->
> <Target Name="Version" > <SvnVersion LocalPath="..\" > <Output
> TaskParameter="Revision" PropertyName="Revision" /> </SvnVersion>
> <Message
> Text="Version: $(Revision)"/> </Target>
>
> Thanks in advance.
> Brian
> -----------------------------------------------------------------------
> -------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to