svn - Problem with SvnInfo in MSBuild (using MSBuildCommunityTasks) -


i have script, use cc.net. i'm facing problem repositorypath attribute. following script (extract of sample script msbuildcommunitytask) giving me troubles:

<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"      toolsversion ="3.5">   <import project="$(msbuildextensionspath)\msbuildcommunitytasks\msbuild.community.tasks.targets" />    <target name="remoteinfo">     <svninfo repositorypath="http://msbuildtasks.tigris.org/svn/msbuildtasks/trunk/master.proj">       <output taskparameter="repositorypath" propertyname="repositorypath" />       <output taskparameter="repositoryroot" propertyname="repositoryroot" />       <output taskparameter="lastchangedauthor" propertyname="lastchangedauthor" />       <output taskparameter="lastchangedrevision" propertyname="lastchangedrevision" />       <output taskparameter="lastchangeddate" propertyname="lastchangeddate" />       <output taskparameter="schedule" propertyname="schedule" />       <output taskparameter="nodekind" propertyname="nodekind" />       <output taskparameter="repositoryuuid" propertyname="repositoryuuid" />    </svninfo>    <message text="repositoryroot: $(repositoryroot)" />    <message text="repositorypath: $(repositorypath)" />    <message text="lastchangedauthor: $(lastchangedauthor)" />    <message text="lastchangedrevision: $(lastchangedrevision)" />    <message text="lastchangeddate: $(lastchangeddate)" />    <message text="schedule: $(schedule)" />    <message text="nodekind: $(nodekind)" />    <message text="repositoryuuid: $(repositoryuuid)" />   </target> </project> 

command line:

d:\test>msbuild test.build /target:remoteinfo 

the answer is:

d:\_solutiontrunk\build\test.build(7,2): error msb6001: ungültiger befehlszeilenschalter für "svn.exe". illegales zeichen im pfad. 

which can translated as: invalid commandline switch "svn.exe". illegals character in path.

of course i'll use script svncheckout task repositorypath="https://mysvnserver.myintranet.mydomain:8443/svn/repository/somename/trunk

i'm facing same error.

problem solved!

when using subversion task in msbuildcommunitytask, location command-line subversion (svn.exe) been looked-up in path-variable.
on computer illegal character ("). throws exception, says, there illegal character in path...
misunderstood error, thought illegal character in repositorypath-attribute.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -